#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t, i;
  cin >> t;
  for (i = 0; i < t; i++) {
    long long int n;
    long long int x = 0;
    cin >> n;
    vector<long long int> a;
    long long int p;
    for (long long int j = 0; j < n; j++) {
      cin >> p;
      a.push_back(p);
      x ^= p;
    }
    if (!x) {
      cout << "DRAW"
           << "\n";
      continue;
    }
    for (long long int j = 30; j >= 0; j--) {
      long long int o = 0;
      long long int z = 0;
      for (long long int k = 0; k < n; k++) {
        if (a[k] >> j & 1)
          o++;
        else
          z++;
      }
      if (x >> (j)) {
        if ((o % 4 == 3) && (z % 2 == 0))
          cout << "LOSE"
               << "\n";
        else
          cout << "WIN"
               << "\n";
        break;
      }
    }
  }
}
