#include <bits/stdc++.h>
using namespace std;
int k1, k2, n;
int vst[7100][2], dig[7100][2], dp[7100][2];
int a[7100], b[7100];
int main() {
  cin >> n;
  cin >> k1;
  for (int i = 1; i <= k1; i++) scanf("%d", &a[i]);
  cin >> k2;
  for (int i = 1; i <= k2; i++) scanf("%d", &b[i]);
  queue<int> q;
  for (int i = 2; i <= n; i++) dig[i][0] = k1, dig[i][1] = k2;
  dp[1][0] = dp[1][1] = -1;
  vst[1][0] = vst[1][1] = 1;
  q.push(1);
  while (!q.empty()) {
    int u = q.front();
    q.pop();
    if (dp[u][1] == -1) {
      for (int i = 1; i <= k1; i++) {
        int v = u - a[i];
        if (v <= 0) v += n;
        if (vst[v][0]) continue;
        q.push(v);
        dp[v][0] = 1;
        vst[v][0] = 1;
      }
    }
    if (dp[u][1] == 1 && vst[u][1] == 1) {
      vst[u][1]++;
      for (int i = 1; i <= k1; i++) {
        int v = u - a[i];
        if (v <= 0) v += n;
        if (vst[v][0]) continue;
        if (dig[v][0] == 0) continue;
        dig[v][0]--;
      }
    }
    if (dp[u][0] == -1) {
      for (int i = 1; i <= k2; i++) {
        int v = u - b[i];
        if (v <= 0) v += n;
        if (vst[v][1]) continue;
        q.push(v);
        dp[v][1] = 1;
        vst[v][1] = 1;
      }
    }
    if (dp[u][0] == 1 && vst[u][0] == 1) {
      vst[u][0]++;
      for (int i = 1; i <= k2; i++) {
        int v = u - b[i];
        if (v <= 0) v += n;
        if (vst[v][1]) continue;
        if (dig[v][1] == 0) continue;
        dig[v][1]--;
      }
    }
    for (int i = 2; i <= n; i++) {
      if (dig[i][0] == 0 && vst[i][0] == 0) {
        dp[i][0] = -1;
        q.push(i);
        vst[i][0] = 1;
      }
      if (dig[i][1] == 0 && vst[i][1] == 0) {
        dp[i][1] = -1;
        q.push(i);
        vst[i][1] = 1;
      }
    }
  }
  for (int i = 2; i <= n; i++) {
    if (dp[i][0] == 1)
      printf("Win ");
    else if (dp[i][0] == -1)
      printf("Lose ");
    else
      printf("Loop ");
  }
  cout << endl;
  for (int i = 2; i <= n; i++) {
    if (dp[i][1] == 1)
      printf("Win ");
    else if (dp[i][1] == -1)
      printf("Lose ");
    else
      printf("Loop ");
  }
  cout << endl;
  return 0;
}
