#include <bits/stdc++.h>
using namespace std;
int a[3][11111];
int ans[3][11111];
struct dd {
  int id;
  int b;
};
queue<dd> Q;
int main() {
  int n;
  int s[3];
  dd D;
  cin >> n;
  cin >> s[0];
  for (int i = 1; i <= s[0]; i++) scanf("%d", &a[0][i]);
  cin >> s[1];
  for (int i = 1; i <= s[1]; i++) scanf("%d", &a[1][i]);
  memset(ans, 0, sizeof(ans));
  for (int i = 1; i <= s[0]; i++) {
    ans[0][(n - a[0][i] + n) % n] = -1;
    D.b = 0;
    D.id = (n - a[0][i] + n) % n;
    Q.push(D);
  }
  for (int i = 1; i <= s[1]; i++) {
    ans[1][(n - a[1][i] + n) % n] = -1;
    D.b = 1;
    D.id = (n - a[1][i] + n) % n;
    Q.push(D);
  }
  while (!Q.empty()) {
    D = Q.front();
    Q.pop();
    int b = D.b;
    int id = D.id;
    if (ans[b][id] == -1) {
      for (int i = 1; i <= s[!b]; i++) {
        int from = (id - a[!b][i] + n) % n;
        if ((ans[!b][from] != -1) && ans[!b][from] != s[!b]) {
          ans[!b][from]++;
          if (ans[!b][from] == s[!b]) {
            D.b = !b;
            D.id = from;
            Q.push(D);
          }
        }
      }
    } else {
      for (int i = 1; i <= s[!b]; i++) {
        int from = (id - a[!b][i] + n) % n;
        if ((ans[!b][from] != -1) && ans[!b][from] != s[!b]) {
          D.b = !b;
          D.id = from;
          ans[!b][from] = -1;
          Q.push(D);
        }
      }
    }
  }
  for (int i = 1; i < n - 1; i++)
    if (ans[0][i] == -1)
      cout << "Win"
           << " ";
    else if (ans[0][i] == s[0])
      cout << "Lose"
           << " ";
    else
      cout << "Loop"
           << " ";
  if (ans[0][n - 1] == -1)
    cout << "Win" << endl;
  else if (ans[0][n - 1] == s[0])
    cout << "Lose" << endl;
  else
    cout << "Loop" << endl;
  for (int i = 1; i < n - 1; i++)
    if (ans[1][i] == -1)
      cout << "Win"
           << " ";
    else if (ans[1][i] == s[1])
      cout << "Lose"
           << " ";
    else
      cout << "Loop"
           << " ";
  if (ans[1][n - 1] == -1)
    cout << "Win" << endl;
  else if (ans[1][n - 1] == s[1])
    cout << "Lose" << endl;
  else
    cout << "Loop" << endl;
}
