#include <bits/stdc++.h>
using namespace std;
int N, A, B;
vector<int> a, b, dp, arr, tmp, ind;
int main() {
  scanf("%d", &N);
  scanf("%d", &A);
  a.resize(A);
  for (int i = 0; i < A; i++) {
    scanf("%d", &a[i]);
  }
  scanf("%d", &B);
  b.resize(B);
  for (int i = 0; i < B; i++) {
    scanf("%d", &b[i]);
  }
  ind = vector<int>(2 * N, 0);
  dp = vector<int>(2 * N, -1);
  dp[0] = 0;
  dp[N] = 0;
  arr.push_back(0);
  arr.push_back(N);
  while (arr.size()) {
    if (dp[arr[0]] == 0) {
      tmp.clear();
      for (int i = 0; i < arr.size(); i++) {
        if (arr[i] < N) {
          for (int j = 0; j < a.size(); j++) {
            if (dp[N + (arr[i] + N - a[j]) % N] == -1) {
              dp[N + (arr[i] + N - a[j]) % N] = 1;
              tmp.push_back(N + (arr[i] + N - a[j]) % N);
            }
          }
        } else {
          for (int j = 0; j < b.size(); j++) {
            if (dp[(arr[i] + N - b[j]) % N] == -1) {
              dp[(arr[i] + N - b[j]) % N] = 1;
              tmp.push_back((arr[i] + N - b[j]) % N);
            }
          }
        }
      }
      arr = tmp;
    } else {
      tmp.clear();
      for (int i = 0; i < arr.size(); i++) {
        if (arr[i] < N) {
          for (int j = 0; j < a.size(); j++) {
            ind[N + (arr[i] + N - a[j]) % N]++;
            if (dp[N + (arr[i] + N - a[j]) % N] == -1 &&
                ind[N + (arr[i] + N - a[j]) % N] == A) {
              dp[N + (arr[i] + N - a[j]) % N] = 0;
              tmp.push_back(N + (arr[i] + N - a[j]) % N);
            }
          }
        } else {
          for (int j = 0; j < b.size(); j++) {
            ind[(arr[i] + N - b[j]) % N]++;
            if (dp[(arr[i] + N - b[j]) % N] == -1 &&
                ind[(arr[i] + N - b[j]) % N] == B) {
              dp[(arr[i] + N - b[j]) % N] = 0;
              tmp.push_back((arr[i] + N - b[j]) % N);
            }
          }
        }
      }
      arr = tmp;
    }
  }
  for (int i = N + 1; i < 2 * N; i++) {
    if (dp[i] == -1) printf("Loop ");
    if (dp[i] == 1) printf("Win ");
    if (dp[i] == 0) printf("Lose ");
  }
  printf("\n");
  for (int i = 1; i < N; i++) {
    if (dp[i] == -1) printf("Loop ");
    if (dp[i] == 1) printf("Win ");
    if (dp[i] == 0) printf("Lose ");
  }
}
