Koa the Koala and her best friend want to play a game.

The game starts with an array $a$ of length $n$ consisting of non-negative integers. Koa and her best friend move in turns and each have initially a score equal to $0$. Koa starts.

Let's describe a move in the game:  During his move, a player chooses any element of the array and removes it from this array, xor-ing it with the current score of the player.

 More formally: if the current score of the player is $x$ and the chosen element is $y$, his new score will be $x \oplus y$. Here $\oplus$ denotes bitwise XOR operation.

 Note that after a move element $y$ is removed from $a$.

  The game ends when the array is empty. 

At the end of the game the winner is the player with the maximum score. If both players have the same score then it's a draw.

If both players play optimally find out whether Koa will win, lose or draw the game.


-----Input-----

Each test contains multiple test cases. The first line contains $t$ ($1 \le t \le 10^4$) — the number of test cases. Description of the test cases follows.

The first line of each test case contains the integer $n$ ($1 \le n \le 10^5$) — the length of $a$.

The second line of each test case contains $n$ integers $a_1, a_2, \ldots, a_n$ ($0 \le a_i \le 10^9$) — elements of $a$.

It is guaranteed that the sum of $n$ over all test cases does not exceed $10^5$.


-----Output-----

For each test case print:  WIN if Koa will win the game.  LOSE if Koa will lose the game.  DRAW if the game ends in a draw. 


-----Examples-----
Input
3
3
1 2 2
3
2 2 3
5
0 0 0 2 2

Output
WIN
LOSE
DRAW

Input
4
5
4 1 5 1 3
4
1 0 1 6
1
0
2
5 4

Output
WIN
WIN
DRAW
WIN



-----Note-----

In testcase $1$ of the first sample we have:

$a = [1, 2, 2]$. Here Koa chooses $1$, other player has to choose $2$, Koa chooses another $2$. Score for Koa is $1 \oplus 2 = 3$ and score for other player is $2$ so Koa wins.

Difficulty: competition

Starter code:

Solutions:
import sys
input = lambda: sys.stdin.readline().rstrip()
T = int(input())
for _ in range(T):
    N = int(input())
    A = [int(a) for a in input().split()]
    X = [0] * 30
    for a in A:
        for i in range(30):
            if a & (1 << i):
                X[i] += 1
    for i in range(30)[::-1]:
        if X[i] % 2:
            if X[i] == 1:
                print("WIN")
            elif N % 2 == 0:
                print("WIN")
            elif X[i] % 4 == 1:
                print("WIN")
            else:
                print("LOSE")
            break
    else:
        print("DRAW")


import sys

input=sys.stdin.readline

for _ in range(int(input())):
    n=int(input())
    a=list(map(int,input().split()))
    base=0
    for A in a:
        base^=A
    if base==0:
        print("DRAW")
    else:
        m=base.bit_length()-1
        count=0
        for A in a:
            count+=(A>>m &1==1)
        if n%2==1:
            if count%4==1:
                print("WIN")
            else:
                print("LOSE")
        else:
            print("WIN")


def solve():
    n = int(input())
    a = list(map(int, input().split()))
    for i in range(31, -1, -1):
        k = 1 << i
        u, v = 0, 0
        for j in a:
            if j & k:
                u += 1
            else:
                v += 1
        if v % 2 == 1:
            if u % 2 == 1:
                print('WIN')
                return
        else:
            if u % 4 == 1:
                print('WIN')
                return
            elif u % 4 == 3:
                print('LOSE')
                return
    print('DRAW')

t = int(input())
for _ in range(t):
    solve()

import sys
input = sys.stdin.readline

t=int(input())
for tests in range(t):
    n=int(input())
    A=list(map(int,input().split()))

    XOR=0
    ANS=[0]*32

    for a in A:
        XOR^=a
        
        for j in range(32):
            if (1<<j) & a !=0:
                ANS[j]+=1

    if XOR==0:
        print("DRAW")
        continue

    for i in range(31,-1,-1):
        if ANS[i]%2!=0:
            xx=ANS[i]
            yy=n-ANS[i]

            if xx%4==3 and yy%2==0:
                print("LOSE")
            else:
                print("WIN")
            break

            
            

    
            

    


import sys
input = sys.stdin.readline


t = int(input())
for _ in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    
    cnts = [0] * 40
    for i in range(n):
        for j in range(40):
            if (a[i] >> j) & 1:
                cnts[j] += 1

    for cnt in cnts[::-1]:
        cnt0 = n - cnt
        cnt1 = cnt
        if cnt1 % 2 == 0:
            continue
        if cnt1 % 4 == 1:
            print("WIN")
            break
        if cnt1 % 4 == 3 and cnt0 % 2 == 1:
            print("WIN")
            break
        if cnt1 % 4 == 3 and cnt0 % 2 == 0:
            print("LOSE")
            break
    else:
        print("DRAW")