#include <bits/stdc++.h>
using namespace std;
const long long int Mod = 1e9 + 7;
const long long int M1 = 998244353;
long long int mod(long long int n) { return ((n % Mod) + Mod) % Mod; }
long long int power(long long int x, long long int y) {
  long long int res = 1;
  x = x;
  while (y > 0) {
    if (y & 1) res = mod(res * x);
    x = mod(x * x);
    y = mod(y >> 1);
  }
  return mod(res);
}
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  fast();
  long long int n;
  cin >> n;
  vector<long long int> d(6, 0);
  for (long long int i = 0; i < n; i++) {
    long long int x, y;
    cin >> x >> y;
    d[x]++;
    d[y]++;
  }
  bool ok = false;
  for (long long int i = 1; i < 6; i++) {
    ok = ok | (d[i] != 2);
  }
  if (ok) {
    cout << "WIN" << '\n';
  } else {
    cout << "FAIL" << '\n';
  }
  return 0;
}
