#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int tabel[n][2];
  for (int i = 1; i < n; i++) {
    tabel[i][0] = 0;
    tabel[i][1] = 0;
  }
  tabel[0][0] = -1;
  tabel[0][1] = -1;
  int r;
  cin >> r;
  int rt[r];
  for (int i = 0; i < r; i++) {
    cin >> rt[i];
  }
  int m;
  cin >> m;
  int mt[m];
  for (int i = 0; i < m; i++) {
    cin >> mt[i];
  }
  bool mm = 1;
  while (mm) {
    mm = 0;
    for (int i = n - 1; i > 0; i--) {
      int pv = 1;
      for (int j = 0; j < r; j++) {
        if (tabel[(i + rt[j]) % n][1] == -1 || tabel[i][0] != 0) {
          pv = -1;
          break;
        }
        if (tabel[(i + rt[j]) % n][1] == 0) {
          pv = 0;
        }
      }
      if (tabel[i][0] == 0 && pv != 0) {
        mm = 1;
        tabel[i][0] = -pv;
      }
      pv = 1;
      for (int j = 0; j < m; j++) {
        if (tabel[(i + mt[j]) % n][0] == -1 || tabel[i][1] != 0) {
          pv = -1;
          break;
        }
        if (tabel[(i + mt[j]) % n][0] == 0) {
          pv = 0;
        }
      }
      if (tabel[i][1] == 0 && pv != 0) {
        mm = 1;
        tabel[i][1] = -pv;
      }
    }
  }
  for (int i = 1; i < n; i++) {
    if (i != 1) {
      cout << " ";
    }
    if (tabel[i][0] == -1) {
      cout << "Lose";
    }
    if (tabel[i][0] == 0) {
      cout << "Loop";
    }
    if (tabel[i][0] == 1) {
      cout << "Win";
    }
  }
  cout << endl;
  for (int i = 1; i < n; i++) {
    if (i != 1) {
      cout << " ";
    }
    if (tabel[i][1] == -1) {
      cout << "Lose";
    }
    if (tabel[i][1] == 0) {
      cout << "Loop";
    }
    if (tabel[i][1] == 1) {
      cout << "Win";
    }
  }
  cout << endl;
  cin >> n;
}
