#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(NULL);
  std::cout.tie(NULL);
  long long t = 1;
  while (t--) {
    long long m;
    cin >> m;
    map<long long, long long> ma;
    for (long long i = 0; i < m; i++) {
      long long a, b;
      cin >> a >> b;
      ma[a]++;
      ma[b]++;
    }
    string ans = "FAIL";
    for (long long i = 1; i <= 5; i++) {
      if (ma[i] < 2 || ma[i] > 2) ans = "WIN";
    }
    cout << ans;
  }
  return 0;
}
