#include <bits/stdc++.h>
int a[101][101];
int main() {
  int n, m, i, p, q, r, j, k, temp, min, flag;
  n = 5;
  scanf("%d", &m);
  for (i = 0; i <= 100; i++)
    for (j = 0; j < 100; j++) a[i][j] = 0;
  for (i = 0; i < m; i++) {
    scanf("%d%d", &p, &q);
    a[p][q] = 1;
    a[q][p] = 1;
  }
  flag = 0;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n; j++) {
      for (k = 1; k <= n; k++) {
        if ((i != j && j != k && k != i) &&
            ((a[i][j] && a[j][k] && a[k][i]) ||
             (!a[i][j] && !a[j][k] && !a[k][i]))) {
          printf("WIN");
          flag = 1;
        }
        if (flag == 1) break;
      }
      if (flag == 1) break;
    }
    if (flag == 1) break;
  }
  if (flag == 0) printf("FAIL");
  return 0;
}
