#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const int64_t INF = 1e18;
string solve() {
  long long n;
  cin >> n;
  long long ara[n];
  for (long long i = 0; i < n; i++) {
    cin >> ara[i];
  }
  for (long long idx = 30; idx >= 0; idx--) {
    long long x = 0, y = 0;
    for (long long i = 0; i < n; i++) {
      if (ara[i] & (1LL << idx))
        x++;
      else
        y++;
    }
    if (x % 2 == 0) continue;
    if (x % 4 == 3 && y % 2 == 0) return "LOSE";
    return "WIN";
  }
  return "DRAW";
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  long long T;
  cin >> T;
  while (T--) {
    cout << solve() << "\n";
  }
  return 0;
}
