#include <bits/stdc++.h>
using namespace std;
int ar[6];
int main() {
  long long int n, x, j, y, cnt = 0, sum = 0;
  for (cin >> n, j = 0; j < n; j++) {
    cin >> x >> y;
    ar[x] += 1;
    ar[y] += 1;
  }
  for (int i = 1; i <= 5; i++) {
    if (ar[i] >= 3 || ar[i] <= 1) cnt++;
  }
  if (cnt > 0)
    cout << "WIN";
  else
    cout << "FAIL";
  return 0;
}
