#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  vector<long long> v(n + 1);
  long long xr = 0;
  for (long long i = 1; i <= n; i++) {
    cin >> v[i];
    xr ^= v[i];
  }
  if (xr == 0) {
    cout << "DRAW"
         << "\n";
    return;
  }
  long long msb;
  for (long long i = 32; ~i; i--) {
    if (xr & (1ll << i)) {
      msb = i;
      break;
    }
  }
  long long count = 0;
  for (long long i = 1; i <= n; i++) {
    count += ((v[i] & (1ll << msb)) > 0);
  }
  bool win = (count % 4 == 1 or ((n - count) & 1));
  cout << (win ? "WIN" : "LOSE") << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
}
