
Your friend wants to make his girlfriend a special gift. She loves chess, so your friend decided to write this wonderful game for her beautiful pink touch mobile. But it was quite time-consuming task, and from time to time, he asks you to help him with the final stage of the game. You need just to tell, using the finally completed chess game, who has won.
The first line contains the number of test cases (1 \leq t \leq 10). Each test case consists of two lines. Its first line contains the number of white figures (1 \leq n \leq 16), followed by a single space, their position on the board, as shown in the example. The second line of each test case in the same format describes the black pieces. Marking: K — King, Q — Queen, R — Rook, B — Bishop, N — Knight, P — Pawn. White figures always are placed from the bottom (on the horizontal lines and ). It is guaranteed that the input data is correct and that such a game could really have taken place. (The game is finished if one of the kings checkmated or a stalemate is declared.)
For each test case in a separate line, if white won - write "WHITE", if black won - write "BLACK", and if there is a draw, write "DRAW". Write words without quotes!
Example 1