#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int m;
  cin >> m;
  int acq[6] = {0};
  for (int i = 0; i < m; i++) {
    int a, b;
    cin >> a >> b;
    acq[a]++, acq[b]++;
  }
  bool flag = true;
  for (int i = 1; i <= 5; i++) {
    if (acq[i] >= 3 || acq[i] <= 1) flag = false;
  }
  if (!flag)
    cout << "WIN\n";
  else
    cout << "FAIL\n";
}
