#include <bits/stdc++.h>
using namespace std;
int n, m[5];
int a[7010][5], f[7010][5], g[7010][5];
void work1(int x, int y);
void work2(int x, int y) {
  f[x][y] = -1;
  int op = 1 - y;
  for (int i = 1; i <= m[op]; i++) {
    int u = (x - a[i][op] + n) % n;
    if (f[u][op] != 1) {
      f[u][op] = 1;
      if (u != 0) work1(u, op);
    }
  }
}
void work1(int x, int y) {
  int op = 1 - y;
  for (int i = 1; i <= m[op]; i++) {
    int u = (x - a[i][op] + n) % n;
    g[u][op]++;
    if (g[u][op] == m[op] && f[u][op] == 0 && u != 0) work2(u, op);
  }
}
int main() {
  scanf("%d", &n);
  memset(f, 0, sizeof f);
  memset(g, 0, sizeof g);
  scanf("%d", &m[0]);
  for (int i = 1; i <= m[0]; i++) {
    scanf("%d", &a[i][0]);
  }
  scanf("%d", &m[1]);
  for (int i = 1; i <= m[1]; i++) {
    scanf("%d", &a[i][1]);
  }
  for (int i = 1; i <= m[0]; i++) {
    f[n - a[i][0]][0] = 1;
    work1(n - a[i][0], 0);
  }
  for (int i = 1; i <= m[1]; i++) {
    f[n - a[i][1]][1] = 1;
    work1(n - a[i][1], 1);
  }
  for (int i = 1; i < n; i++) {
    if (f[i][0] == 1)
      printf("Win ");
    else if (f[i][0] == -1)
      printf("Lose ");
    else
      printf("Loop ");
  }
  printf("\n");
  for (int i = 1; i < n; i++) {
    if (f[i][1] == 1)
      printf("Win ");
    else if (f[i][1] == -1)
      printf("Lose ");
    else
      printf("Loop ");
  }
  printf("\n");
  return 0;
}
