#include <bits/stdc++.h>
using namespace std;
int a[6][6];
int m, found;
void Read_Input() {
  scanf("%d", &m);
  for (int i = 0; i < m; i++) {
    int u, v;
    scanf("%d %d", &u, &v);
    a[u][v] = a[v][u] = 1;
  }
}
void Solve() {
  found = 0;
  for (int i = 1; i <= 5; i++)
    for (int j = i + 1; j <= 5; j++)
      for (int k = j + 1; k <= 5; k++) {
        int cnt = 0;
        cnt += a[i][j];
        cnt += a[i][k];
        cnt += a[j][k];
        found |= cnt == 0;
        found |= cnt == 3;
      }
}
void Write_Output() {
  if (found)
    puts("WIN");
  else
    puts("FAIL");
}
int main() {
  Read_Input();
  Solve();
  Write_Output();
}
