#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  vector<int> k(6);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    k[a]++;
    k[b]++;
  }
  cout << (count(k.begin(), k.end(), 2) == 5 ? "FAIL" : "WIN") << endl;
  return 0;
}
