#include <bits/stdc++.h>
using namespace std;
int n;
int a[15][15];
int check(int i, int j, int k) {
  if (a[i][j] == 1 && a[j][k] == 1 && a[k][i] == 1) return 1;
  if (a[i][j] == 0 && a[j][k] == 0 && a[k][i] == 0) return 1;
  return 0;
}
void solve() {
  int i, x, y, j, k;
  for (i = 1; i <= n; i++) {
    scanf("%d%d", &x, &y);
    a[x][y] = 1;
    a[y][x] = 1;
  }
  for (i = 1; i <= 5; i++) {
    for (j = 1; j <= 5; j++) {
      for (k = 1; k <= 5; k++) {
        if (i != j && j != k && k != i && check(i, j, k) == 1) {
          printf("WIN\n");
          return;
        }
      }
    }
  }
  printf("FAIL\n");
}
int main() {
  while (scanf("%d", &n) > 0) solve();
  return 0;
}
