#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  long long a[n];
  string w = "WIN", l = "LOSE", d = "DRAW";
  long long x = 0;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    x ^= a[i];
  }
  if (x == 0) {
    cout << d << "\n";
    return;
  }
  for (long long k = 31; k >= 0; --k) {
    if ((x >> k) & 1) {
      vector<long long> fr(2);
      for (long long i = 0; i < n; i++) {
        fr[(a[i] >> k) & 1]++;
      }
      if (fr[1] % 4 == 3 && fr[0] % 2 == 0) {
        cout << l << "\n";
      } else
        cout << w << "\n";
      return;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  std::ios::sync_with_stdio(false);
  long long te = 1;
  cin >> te;
  while (te--) {
    solve();
  }
}
