#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, bs;
  int arre[6][6];
  cin >> n;
  memset(arre, 0, sizeof arre);
  for (int i = int(0); i < int(n); i++) {
    cin >> a >> bs;
    arre[a][bs] = 1;
    arre[bs][a] = 1;
  }
  bool b = false;
  for (int i = int(1); i < int(6); i++) {
    for (int j = int(1); j < int(6); j++) {
      if (i == j) continue;
      for (int k = int(1); k < int(6); k++) {
        if (j == k) continue;
        if (i == k) continue;
        if (arre[i][j] && arre[i][k] && arre[j][k]) b = true;
        if (!arre[i][j] && !arre[i][k] && !arre[j][k]) b = true;
      }
    }
  }
  if (b)
    cout << "WIN\n";
  else
    cout << "FAIL\n";
  return 0;
}
