#include <bits/stdc++.h>
using namespace std;
int s[3][7100];
int n, nr, nm;
vector<int> rm[2];
int add[3][7100];
void fill(int r_or_m, int pos) {
  if (s[r_or_m][pos] == 0) {
    for (int i = 0; i < rm[1 - r_or_m].size(); i++) {
      int g = pos + rm[1 - r_or_m][i];
      if (g > n) {
        g %= n;
      }
      if (g == 1) {
        continue;
      }
      if (s[1 - r_or_m][g] == 1) {
        continue;
      }
      s[1 - r_or_m][g] = 1;
      fill(1 - r_or_m, g);
    }
  }
  if (s[r_or_m][pos] == 1) {
    for (int i = 0; i < rm[1 - r_or_m].size(); i++) {
      int g = pos + rm[1 - r_or_m][i];
      if (g > n) {
        g %= n;
      }
      if (g == 1) {
        continue;
      }
      if (s[1 - r_or_m][g] != -1)
        continue;
      else {
        add[1 - r_or_m][g]++;
        if (add[1 - r_or_m][g] == rm[1 - r_or_m].size()) {
          s[1 - r_or_m][g] = 0;
          fill(1 - r_or_m, g);
        }
      }
    }
  }
}
int main() {
  cin >> n;
  cin >> nr;
  for (int i = 0; i < nr; i++) {
    int z;
    cin >> z;
    rm[0].push_back(z);
  }
  cin >> nm;
  for (int i = 0; i < nm; i++) {
    int z;
    cin >> z;
    rm[1].push_back(z);
  }
  memset(s, -1, sizeof(s));
  s[0][1] = 0;
  s[1][1] = 0;
  fill(0, 1);
  fill(1, 1);
  for (int i = 0; i < 2; i++) {
    for (int j = n; j >= 2; j--) {
      if (s[i][j] == 1) {
        cout << "Win ";
      } else if (s[i][j] == 0) {
        cout << "Lose ";
      } else {
        cout << "Loop ";
      }
    }
    cout << endl;
  }
  return 0;
}
