#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse2")
using namespace std;
void solution() {
  int m;
  vector<vector<int> > graph(5);
  cin >> m;
  for (int i = 1; i <= m; i++) {
    int u, v;
    cin >> u >> v;
    u--;
    v--;
    graph[u].push_back(v);
    graph[v].push_back(u);
  }
  for (int i = 0; i < 5; i++) {
    if ((int)graph[i].size() <= 1 || (int)graph[i].size() >= 3) {
      cout << "WIN" << '\n';
      return;
    }
  }
  cout << "FAIL" << '\n';
  return;
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  for (int i = 1; i <= t; i++) {
    solution();
  }
}
