#include <bits/stdc++.h>
using namespace std;
int a[2][7010], n, k[2], num[2][7010];
int f[2][7010];
int Win = 1;
int Lose = 2;
void updata(int x, int y, int z) {
  if (f[x][y]) return;
  f[x][y] = z;
  if (z == Lose) {
    for (int i = 0; i < k[!x]; i++) updata(!x, (y - a[!x][i] + n) % n, Win);
  } else {
    for (int i = 0; i < k[!x]; i++)
      if (!--num[!x][(y - a[!x][i] + n) % n])
        updata(!x, (y - a[!x][i] + n) % n, Lose);
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < 2; i++) {
    scanf("%d", &k[i]);
    for (int j = 0; j < k[i]; j++) scanf("%d", &a[i][j]);
    for (int j = 0; j < n; j++) num[i][j] = k[i];
  }
  memset(f, 0, sizeof(f));
  f[1][0] = Lose;
  updata(0, 0, Lose);
  f[1][0] = 0;
  updata(1, 0, Lose);
  for (int i = 0; i < 2; i++) {
    for (int j = 1; j < n; j++) {
      if (j != 1) putchar(' ');
      if (f[i][j] == Win)
        printf("Win");
      else if (f[i][j] == Lose)
        printf("Lose");
      else
        printf("Loop");
    }
    puts("");
  }
  return 0;
}
