#include <bits/stdc++.h>
using namespace std;
vector<int> adj[200005];
long long vis[200005];
long long parent[200005];
long long level[200005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long m;
  cin >> m;
  for (long long i = 0; i < m; i++) {
    long long x, y;
    cin >> x >> y;
    adj[x].push_back(y);
    adj[y].push_back(x);
  }
  for (long long i = 1; i <= 5; i++) {
    if (adj[i].size() >= 3 || adj[i].size() <= 1) {
      cout << "WIN";
      return 0;
    }
  }
  cout << "FAIL";
  return 0;
}
