#include <bits/stdc++.h>
using namespace std;
inline void read_string_to_vector(vector<string> &vec) {
  string str;
  getline(cin, str);
  vec.push_back(str);
}
template <typename T>
inline void read_digit_to_vector(vector<T> &vec) {
  T t;
  cin >> t;
  vec.push_back(t);
}
template <typename T>
inline T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
bool used[7001][2];
bool win[7001][2];
bool loose[7001][2];
int degree[7001][2];
bool xaxaxaxa[7001][7001][2];
bool xaxaxaxa_whyIT[7001][2];
int gd[2];
void dfs(int v, int x) {
  used[v][x] = true;
  for (register int j = 0; j < 7001; ++j) {
    if (!xaxaxaxa[v][j][x]) continue;
    int it = j;
    if (!used[it][x ^ 1]) {
      if (loose[v][x])
        win[it][x ^ 1] = true;
      else if (--degree[it][x ^ 1] == 0)
        loose[it][x ^ 1] = true;
      else
        continue;
      dfs(it, x ^ 1);
    }
  }
}
int n, k1, k2;
vector<int> s1, s2;
int mmod(int x, int m) {
  while (x >= m) x -= m;
  return x;
}
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  cin >> k1;
  for (register int i = 0; i < k1; ++i) {
    int xc;
    cin >> xc;
    s1.push_back(xc);
  }
  cin >> k2;
  for (register int i = 0; i < k2; ++i) {
    int xc;
    cin >> xc;
    s2.push_back(xc);
  }
  loose[0][0] = loose[0][1] = true;
  for (register int j = 1; j < n; ++j) {
    gd[0] = gd[1] = 0;
    for (register int k = 0; k < k1; ++k) {
      xaxaxaxa[(j + s1[k]) % n][j][1] = true;
      xaxaxaxa_whyIT[(j + s1[k]) % n][0] = true;
    }
    for (register int k = 0; k < k2; ++k) {
      xaxaxaxa[(j + s2[k]) % n][j][0] = true;
      xaxaxaxa_whyIT[(j + s2[k]) % n][1] = true;
    }
    for (register int p = 0; p < 7001; ++p) {
      gd[0] += xaxaxaxa_whyIT[p][0];
      gd[1] += xaxaxaxa_whyIT[p][1];
      xaxaxaxa_whyIT[p][0] = xaxaxaxa_whyIT[p][1] = false;
    }
    degree[j][0] = gd[0];
    degree[j][1] = gd[1];
  }
  dfs(0, 0), dfs(0, 1);
  for (register int j = 0; j < 2; ++j) {
    for (register int i = 1; i < n; ++i)
      if (win[i][j])
        cout << "Win ";
      else if (loose[i][j])
        cout << "Lose ";
      else
        cout << "Loop ";
    cout << "\n";
  }
  return 0;
}
