#include <bits/stdc++.h>
using namespace std;
void Solve() {
  long long m;
  cin >> m;
  vector<long long> a[6];
  for (long long i = 0; i < m; i++) {
    long long u, v;
    cin >> u >> v;
    a[u].push_back(v), a[v].push_back(u);
  }
  long long cnt2 = 0, ans = 1;
  for (long long i = 1; i <= 5; i++) cnt2 += (2 == a[i].size());
  if (cnt2 == 5) ans = 0;
  ans == 1 ? cout << "WIN\n" : cout << "FAIL\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  Solve();
  return 0;
}
