#include <bits/stdc++.h>
using namespace std;
vector<int> s1(7010, 0);
vector<int> s2(7010, 0);
vector<int> res1(7010, 0);
vector<int> res2(7010, 0);
vector<int> cnt1(7010);
vector<int> cnt2(7010);
int n, k1, k2;
void add1(int x);
void add2(int x);
void add3(int x);
void add4(int x);
void add1(int x) {
  for (int j = 0; j < k1; j++) {
    int buf1 = (x + n - s1[j]) % n;
    if (!buf1) continue;
    cnt1[buf1]--;
    if (cnt1[buf1] == 0 && !res1[buf1]) res1[buf1] = 2, add4(buf1);
  }
}
void add2(int x) {
  for (int j = 0; j < k2; j++) {
    int buf1 = (x + n - s2[j]) % n;
    if (!buf1) continue;
    cnt2[buf1]--;
    if (cnt2[buf1] == 0 && !res2[buf1]) res2[buf1] = 2, add3(buf1);
  }
}
void add3(int x) {
  for (int i = 0; i < k1; i++) {
    int buf = (x + n - s1[i]) % n;
    if (!buf) continue;
    if (!res1[buf]) res1[buf] = 1, add2(buf);
  }
}
void add4(int x) {
  for (int j = 0; j < k2; j++) {
    int buf1 = (x + n - s2[j]) % n;
    if (!buf1) continue;
    if (!res2[buf1]) res2[buf1] = 1, add1(buf1);
  }
}
int main() {
  cin >> n;
  cin >> k1;
  for (int i = 0; i < k1; i++) cin >> s1[i];
  cin >> k2;
  for (int i = 0; i < k2; i++) cin >> s2[i];
  cnt1.assign(n + 1, k1);
  cnt2.assign(n + 1, k2);
  add3(0);
  add4(0);
  for (int i = 1; i < n; i++) {
    if (res1[i] == 1)
      printf("Win ");
    else if (res1[i] == 2)
      printf("Lose ");
    else
      printf("Loop ");
  }
  cout << endl;
  for (int i = 1; i < n; i++) {
    if (res2[i] == 1)
      printf("Win ");
    else if (res2[i] == 2)
      printf("Lose ");
    else
      printf("Loop ");
  }
  return 0;
}
