The first line contains one integer TTT (1≤T≤1051\le T\le 10^51≤T≤105), denoting the number of test cases.
For each test case, there is one line with four coordinates denoting the position of Black's king, White's king, White's knight, and White's bishop, respectively.
The position is guaranteed to be reachable, so notice that Black's king is guaranteed not to be under immediate attack because the White moves first.
输出格式
For each test case:
If White can deliver the checkmate, print ``win'' (without quotes) and an integer in the following line, denoting the number of moves for White it takes if both sides play optimally.
Otherwise, print ``draw'' (without quotes).