#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e4 + 4;
int a[MAXN], b[MAXN];
int chances[MAXN][2];
int dp[MAXN][2];
int n, k1, k2;
void crack(int x, int y) {
  if (y == 0) {
    for (int i = 0; i < k2; i++) {
      int ind = x - b[i];
      if (ind < 0) ind += n;
      if (dp[ind][1] == 0) {
        if (dp[x][y] == 1) {
          chances[ind][1]--;
          if (chances[ind][1] == 0) {
            dp[ind][1] = 2;
            crack(ind, 1);
          }
        } else {
          dp[ind][1] = 1;
          crack(ind, 1);
        }
      }
    }
  } else {
    for (int i = 0; i < k1; i++) {
      int ind = x - a[i];
      if (ind < 0) ind += n;
      if (dp[ind][0] == 0) {
        if (dp[x][y] == 1) {
          chances[ind][0]--;
          if (chances[ind][0] == 0) {
            dp[ind][0] = 2;
            crack(ind, 0);
          }
        } else {
          dp[ind][0] = 1;
          crack(ind, 0);
        }
      }
    }
  }
}
int main() {
  cin >> n;
  cin >> k1;
  for (int i = 0; i < k1; i++) {
    cin >> a[i];
  }
  cin >> k2;
  for (int i = 0; i < k2; i++) {
    cin >> b[i];
  }
  for (int i = 0; i < n; i++) {
    chances[i][0] = k1;
    chances[i][1] = k2;
  }
  dp[0][0] = 2;
  dp[0][1] = 2;
  crack(0, 0);
  crack(0, 1);
  for (int i = 1; i < n; i++) {
    if (dp[i][0] == 0)
      cout << "Loop ";
    else if (dp[i][0] == 1)
      cout << "Win ";
    else
      cout << "Lose ";
  }
  cout << endl;
  for (int i = 1; i < n; i++) {
    if (dp[i][1] == 0)
      cout << "Loop ";
    else if (dp[i][1] == 1)
      cout << "Win ";
    else
      cout << "Lose ";
  }
  cout << endl;
  return 0;
}
