#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  int n, x, y;
  cin >> n;
  if (n != 5) {
    cout << "WIN" << endl;
    return 0;
  } else {
    int arr[6];
    memset(arr, 0, sizeof arr);
    for (int i = 0; i < n; ++i) {
      cin >> x >> y;
      arr[x]++;
      arr[y]++;
    }
    for (int i = 1; i < 6; ++i) {
      if (arr[i] != 2) {
        cout << "WIN" << endl;
        return 0;
      }
    }
  }
  cout << "FAIL" << endl;
  return 0;
}
