#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n;
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    m[a]++;
    m[b]++;
  }
  for (int i = 1; i <= 5; i++) {
    if (m[i] != 2) {
      cout << "WIN";
      return 0;
    }
  }
  cout << "FAIL";
}
