#include <bits/stdc++.h>
using namespace std;
bool flag[14][14];
int main() {
  int n, a, b;
  cin >> n;
  int i, j;
  for (j = 0; j < 10; j++)
    for (i = 0; i < 10; i++) flag[i][j] = false;
  for (i = 0; i < n; i++) {
    cin >> a >> b;
    flag[a][b] = flag[b][a] = true;
  }
  int count;
  bool flag1 = false, flag2 = false;
  for (i = 1; i < 6; i++) {
    count = 0;
    for (j = 1; j < 6; j++)
      if (flag[i][j]) count++;
    if (count > 2) flag1 = true;
  }
  for (i = 1; i < 6; i++) {
    count = 0;
    for (j = 1; j < 6; j++)
      if (i != j && !flag[i][j]) count++;
    if (count > 2) flag2 = true;
  }
  if (flag1 || flag2)
    cout << "WIN" << endl;
  else
    cout << "FAIL" << endl;
  return 0;
}
