#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
using vii = vector<ii>;
using vll = vector<ll>;
const int mod = 1000000007;
inline void add(int& x, int y) {
  x += y;
  if (x >= mod) x -= mod;
  if (x < 0) x += mod;
}
inline int mul(int x, int y) { return ((ll)x * y) % mod; }
int gcd(int a, int b) {
  if (b) return gcd(b, a % b);
  return a;
}
int power(int a, int p) {
  int ret = 1;
  while (p) {
    if (p & 1) ret = mul(ret, a);
    a = mul(a, a);
    p /= 2;
  }
  return ret;
}
int phi(int n) {
  int ret = n;
  int i = 2;
  if (n % i == 0) {
    ret -= ret / i;
    while (n % i == 0) n /= i;
  }
  for (i = 3; i * i <= n; i++)
    if (n % i == 0) {
      ret -= ret / i;
      while (n % i == 0) n /= i;
    }
  if (n > 1) ret -= ret / n;
  return ret;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t;
  cin >> t;
  while (t--) {
    vii C(31, {0, 0});
    int n;
    cin >> n;
    while (n--) {
      int x;
      cin >> x;
      for (int b = 0; b < 31; b++, x /= 2) {
        if (x % 2)
          C[b].second++;
        else
          C[b].first++;
      }
    }
    int state = 0;
    for (int b = 30; b >= 0; b--) {
      C[b].first %= 2;
      C[b].second %= 4;
      if (C[b].second == 0 or C[b].second == 2)
        continue;
      else {
        if (C[b].second == 1)
          state = 1;
        else {
          if (C[b].first == 0)
            state = -1;
          else
            state = 1;
        }
        break;
      }
    }
    if (state == 0)
      cout << "DRAW";
    else if (state == 1)
      cout << "WIN";
    else
      cout << "LOSE";
    cout << endl;
  }
  return 0;
}
