#include <bits/stdc++.h>
using namespace std;
const int maxn = 7000 + 5;
string str[] = {"Loop", "Lose", "Win"};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int k[2], s[2][maxn];
  cin >> k[0];
  for (int i = 1; i <= k[0]; i++) cin >> s[0][i];
  cin >> k[1];
  for (int i = 1; i <= k[1]; i++) cin >> s[1][i];
  int dp[2][n + 1], cnt[2][n + 1];
  bool vis[2][n + 1];
  memset(vis, false, sizeof(vis));
  memset(dp, -1, sizeof(dp));
  memset(cnt, 0, sizeof(cnt));
  dp[0][n] = dp[1][n] = 0;
  bool change = true;
  while (change) {
    change = false;
    for (int p = 0; p < 2; p++) {
      for (int i = n; i >= 1; i--) {
        if (vis[p][i] || dp[p][i] == -1) continue;
        vis[p][i] = true;
        for (int j = 1; j <= k[p ^ 1]; j++) {
          int pre = (i - s[p ^ 1][j] + n - 1) % n + 1;
          if (!dp[p][i]) {
            if (dp[p][i] != 1) {
              change = true;
              dp[p ^ 1][pre] = 1;
            }
          } else {
            cnt[p ^ 1][pre]++;
            if (cnt[p ^ 1][pre] == k[p ^ 1]) {
              change = true;
              dp[p ^ 1][pre] = 0;
            }
          }
        }
      }
    }
  }
  for (int i = 1; i < n - 1; i++) cout << str[dp[0][i] + 1] << " ";
  cout << str[dp[0][n - 1] + 1] << endl;
  for (int i = 1; i < n - 1; i++) cout << str[dp[1][i] + 1] << " ";
  cout << str[dp[1][n - 1] + 1] << endl;
}
