#include <bits/stdc++.h>
using namespace std;
bitset<6> a[6];
bool check(int i, int j, int k) {
  if (a[i][j] and a[i][k] and a[j][k]) return 1;
  if (!a[i][j] and !a[i][k] and !a[j][k]) return 1;
  return 0;
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < 6; ++i) a[i].reset();
  for (int i = 0; i < n; ++i) {
    int l, r;
    cin >> l >> r;
    a[l][r] = a[r][l] = 1;
  }
  for (int i = 1; i < 6; ++i) {
    for (int j = i + 1; j < 6; ++j) {
      for (int k = j + 1; k < 6; ++k) {
        if (check(i, j, k)) return cout << "WIN", 0;
      }
    }
  }
  return cout << "FAIL", 0;
}
