#include <bits/stdc++.h>
using namespace std;
const int MAXN = 7e3 + 5;
int DP[MAXN][2];
int C[MAXN][2];
queue<pair<int, int> > cola;
int N, K1, K2;
int S1[MAXN];
int S2[MAXN];
bool B[MAXN][2];
void bfs() {
  cola.push(pair<int, int>(1, 0));
  cola.push(pair<int, int>(1, 1));
  B[1][0] = B[0][1] = 1;
  for (; !cola.empty();) {
    int pos = cola.front().first;
    int player = cola.front().second;
    cola.pop();
    if (player == 0) {
      for (int i = 1; i <= K2; i++) {
        int newpos = (pos - S2[i] + N) % N;
        if (newpos == 0) newpos = N;
        if (B[newpos][!player]) continue;
        if (DP[pos][player] == 0)
          B[newpos][!player] = 1, DP[newpos][!player] = 1,
          cola.push(pair<int, int>(newpos, !player));
        else {
          C[newpos][!player]++;
          if (C[newpos][!player] == K2) {
            DP[newpos][!player] = 0;
            B[newpos][!player] = 1, cola.push(pair<int, int>(newpos, !player));
          }
        }
      }
    } else {
      for (int i = 1; i <= K1; i++) {
        int newpos = (pos - S1[i] + N) % N;
        if (newpos == 0) newpos = N;
        if (B[newpos][!player]) continue;
        if (DP[pos][player] == 0)
          B[newpos][!player] = 1, DP[newpos][!player] = 1,
          cola.push(pair<int, int>(newpos, !player));
        else {
          C[newpos][!player]++;
          if (C[newpos][!player] == K1) {
            DP[newpos][!player] = 0;
            B[newpos][!player] = 1, cola.push(pair<int, int>(newpos, !player));
          }
        }
      }
    }
  }
}
void print(int v, int sl) {
  if (sl) cout << ' ';
  if (v == 0)
    cout << "Lose";
  else if (v == 1)
    cout << "Win";
  else
    cout << "Loop";
}
int main() {
  cin >> N;
  cin >> K1;
  for (int i = 1; i <= K1; i++) cin >> S1[i];
  cin >> K2;
  for (int i = 1; i <= K2; i++) cin >> S2[i];
  for (int i = 0; i < MAXN; i++) DP[i][0] = DP[i][1] = -1;
  DP[1][0] = DP[1][1] = 0;
  bfs();
  for (int j = 0; j <= 1; j++) {
    print(DP[2][j], 0);
    for (int i = 3; i <= N; i++) print(DP[i][j], 1);
    cout << '\n';
  }
  return 0;
}
