#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  long a, b, c[100] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    c[a]++;
    c[b]++;
  }
  long q = 0;
  for (int i = 1; i <= 5; i++) {
    if (c[i] >= 3 || c[i] <= 1) {
      cout << "WIN\n";
      q = 1;
      break;
    }
  }
  if (q == 0) cout << "FAIL\n";
  return 0;
}
