#include <bits/stdc++.h>
using namespace std;
int n, k1, k2;
int s1[10000], s2[10000];
int r1[10000], r2[10000];
int c1[10000], c2[10000];
queue<pair<int, int> > q;
int main() {
  scanf("%d", &n);
  scanf("%d", &k1);
  for (int i = 0; i < k1; i++) {
    scanf("%d", &s1[i]);
  }
  scanf("%d", &k2);
  for (int i = 0; i < k2; i++) {
    scanf("%d", &s2[i]);
  }
  r1[0] = r2[0] = 1;
  q.push(make_pair(0, -1));
  q.push(make_pair(0, -2));
  while (q.size()) {
    pair<int, int> u = q.front();
    q.pop();
    if (u.second == 1) {
      for (int i = 0; i < k2; i++) {
        c2[(u.first + n - s2[i]) % n]++;
        if (c2[(u.first + n - s2[i]) % n] == k2 &&
            r2[(u.first + n - s2[i]) % n] == 0) {
          r2[(u.first + n - s2[i]) % n] = -1;
          q.push(make_pair((u.first + n - s2[i]) % n, -2));
        }
      }
    }
    if (u.second == 2) {
      for (int i = 0; i < k1; i++) {
        c1[(u.first + n - s1[i]) % n]++;
        if (c1[(u.first + n - s1[i]) % n] == k1 &&
            r1[(u.first + n - s1[i]) % n] == 0) {
          r1[(u.first + n - s1[i]) % n] = -1;
          q.push(make_pair((u.first + n - s1[i]) % n, -1));
        }
      }
    }
    if (u.second == -1) {
      for (int i = 0; i < k2; i++) {
        if (r2[(u.first + n - s2[i]) % n] == 0) {
          r2[(u.first + n - s2[i]) % n] = 1;
          q.push(make_pair((u.first + n - s2[i]) % n, 2));
        }
      }
    }
    if (u.second == -2) {
      for (int i = 0; i < k1; i++) {
        if (r1[(u.first + n - s1[i]) % n] == 0) {
          r1[(u.first + n - s1[i]) % n] = 1;
          q.push(make_pair((u.first + n - s1[i]) % n, 1));
        }
      }
    }
  }
  for (int i = 1; i < n; i++) {
    if (r1[i] == -1) {
      printf("Lose");
    } else if (r1[i] == 1) {
      printf("Win");
    } else {
      printf("Loop");
    }
    if (i < n - 1) {
      printf(" ");
    } else {
      printf("\n");
    }
  }
  for (int i = 1; i < n; i++) {
    if (r2[i] == -1) {
      printf("Lose");
    } else if (r2[i] == 1) {
      printf("Win");
    } else {
      printf("Loop");
    }
    if (i < n - 1) {
      printf(" ");
    } else {
      printf("\n");
    }
  }
}
