#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N];
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    int res = 0;
    for (int i = 1; i <= n; ++i) scanf("%d", &a[i]), res ^= a[i];
    if (res == 0) {
      puts("DRAW");
    } else {
      int s = 0, pos = 30;
      for (int i = 31; i >= 0; --i) {
        if ((res >> i) & 1) {
          pos = i;
          break;
        }
      }
      int cnt = 0;
      for (int i = 1; i <= n; ++i) {
        if ((a[i] >> pos) & 1) ++cnt;
      }
      int x = cnt;
      int y = n - x;
      if (x % 4 == 3 && y % 2 == 0)
        puts("LOSE");
      else
        puts("WIN");
    }
  }
  return 0;
}
