#include <bits/stdc++.h>
using namespace std;
int R[100100], M[100100], r, m, CR[100100], CM[100100], N, n;
int ind(int i) { return (i <= 0 ? N + i : (i > N ? i - N : i)); }
int main() {
  cin >> N >> r;
  for (int i = 1; i <= r; i++) cin >> R[i];
  cin >> m;
  for (int i = 1; i <= m; i++) cin >> M[i];
  sort(R + 1, R + r + 1);
  sort(M + 1, M + m + 1);
  bool u = 1;
  while (u) {
    u = 0;
    for (int i = N, olr, olm; i > 1; i--) {
      CR[1] = CM[1] = -1;
      olr = CR[i], olm = CM[i];
      CR[i] = CM[i] = -1;
      for (int j = 1; j <= r; j++) CR[i] = max(CR[i], -CM[ind(i + R[j])]);
      for (int j = 1; j <= m; j++) CM[i] = max(CM[i], -CR[ind(i + M[j])]);
      if (CR[i] == -1)
        for (int j = 1; j <= m; j++) CM[ind(i - M[j])] = 1;
      if (CM[i] == -1)
        for (int j = 1; j <= r; j++) CR[ind(i - R[j])] = 1;
      u |= olr != CR[i] || olm != CM[i];
    }
  }
  for (int i = 2; i <= N; i++)
    cout << (CR[i] == 1 ? "Win" : (CR[i] == 0 ? "Loop" : "Lose")) << ' ';
  cout << '\n';
  for (int i = 2; i <= N; i++)
    cout << (CM[i] == 1 ? "Win" : (CM[i] == 0 ? "Loop" : "Lose")) << ' ';
}
