Who has won?
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 in 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.
Input
The first line contains the number of test cases (1 ≤ t ≤ 10). Each test case consists of two lines. Its first line contains the number of white figures (1 ≤ n ≤ 16), followed by a single space determines 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 1 and 2). It is guaranteed that the input data is correct and that is really could have place in our life. (The game is finished if one of the kings checkmated or a stalemate is declared.)
Output
For each test case in a separate line, if white won - write "WHITE", if black won - write "BLACK", and if draw is, write "DRAW". Write words without quotes!