#include <bits/stdc++.h>
using namespace std;
const int MAXN = 5001;
int T, N;
void solve() {
  cin >> N;
  vector<int> a(N);
  vector<int> c(30, 0), c2(30, 0);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    int ind = 0;
    for (int j = 0; j < 30; j++) {
      if (a[i] & (1 << j))
        c[j]++;
      else
        c2[j]++;
    }
  }
  for (int j = 29; j >= 0; j--) {
    if (c[j] % 2 == 1) {
      if (c[j] % 4 == 1 || c2[j] % 2 == 1) {
        cout << "WIN\n";
        return;
      } else {
        cout << "LOSE\n";
        return;
      }
    }
  }
  cout << "DRAW\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> T;
  while (T--) {
    solve();
  }
}
