#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long t;
  t = 1;
  while (t--) {
    long long n;
    cin >> n;
    long long indeg[6] = {0};
    for (long long i = 0; i < n; i++) {
      long long x, y;
      cin >> x >> y;
      indeg[x]++;
      indeg[y]++;
    }
    long long flag = 0;
    for (long long i = 1; i <= 5; i++) {
      if (indeg[i] >= 3 || indeg[i] < 2) {
        flag = 1;
      }
    }
    if (flag) {
      cout << "WIN" << '\n';
    } else {
      cout << "FAIL" << '\n';
    }
  }
  return 0;
}
