#include <bits/stdc++.h>
using namespace std;
const int N = 7000 + 10;
bool was[N][2];
int cost[N][2];
int out_deg[N][2];
vector<int> s[2];
int n, k1, k2;
int mod_add(int a, int b) {
  a -= b;
  a %= n;
  a += n;
  return a % n;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  cin >> n;
  cin >> k1;
  s[0].resize(k1);
  for (int i = 0; i < k1; i++) cin >> s[0][i];
  cin >> k2;
  s[1].resize(k2);
  for (int i = 0; i < k2; i++) cin >> s[1][i];
  cost[0][0] = cost[0][1] = -1;
  for (int i = 1; i < n; i++) {
    out_deg[i][0] = k1;
    out_deg[i][1] = k2;
  }
  for (;;) {
    bool any = false;
    for (int x = 0; x < n && !any; x++)
      for (int who = 0; who < 2 && !any; who++) {
        if (was[x][who]) continue;
        if (out_deg[x][who] == 0) {
          any = true;
          was[x][who] = true;
          int ans = -1;
          if (x > 0) {
            for (int y : s[who]) ans = max(ans, -cost[mod_add(x, -y)][1 - who]);
          }
          for (int y : s[1 - who]) {
            if (!out_deg[mod_add(x, y)][1 - who]) continue;
            out_deg[mod_add(x, y)][1 - who]--;
            if (ans == -1) out_deg[mod_add(x, y)][1 - who] = 0;
          }
          cost[x][who] = ans;
        }
      }
    if (!any) break;
  }
  for (int who = 0; who < 2; who++) {
    for (int i = 1; i < n; i++)
      if (cost[i][who] == 1)
        cout << "Win ";
      else if (cost[i][who] == 0)
        cout << "Loop ";
      else
        cout << "Lose ";
    cout << endl;
  }
}
