#include <bits/stdc++.h>
using namespace std;
int main() {
  long long m, i, j;
  cin >> m;
  map<long long, long long> mp;
  vector<bool> f(10, 0);
  while (m--) {
    long long u, v;
    cin >> u >> v;
    mp[u]++;
    mp[v]++;
  }
  long long cnt = 0;
  for (i = 1; i <= 5; i++) {
    if (mp[i] == 2) {
      cnt++;
    }
  }
  if (cnt == 5)
    cout << "FAIL" << endl;
  else
    cout << "WIN" << endl;
}
