#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, a, b, q1 = 0, q2 = 0, q3 = 0, q4 = 0, q5 = 0;
  cin >> m;
  for (int i = 1; i <= m; i++) {
    cin >> a >> b;
    if ((a == 1) || (b == 1)) q1++;
    if ((a == 2) || (b == 2)) q2++;
    if ((a == 3) || (b == 3)) q3++;
    if ((a == 4) || (b == 4)) q4++;
    if ((a == 5) || (b == 5)) q5++;
  }
  if ((q1 == 2) && (q2 == 2) && (q3 == 2) && (q4 == 2) && (q5 == 2))
    cout << "FAIL" << endl;
  else
    cout << "WIN" << endl;
  return 0;
}
