#include <bits/stdc++.h>
using namespace std;
bool f[10][10];
int main() {
  int p, i, j, k, kk;
  while (cin >> p) {
    memset(f, 0, sizeof(f));
    while (p--) {
      int x, y;
      cin >> x >> y;
      f[x][y] = 1;
      f[y][x] = 1;
    }
    bool flag = 0;
    for (i = 1; i <= 5; i++) {
      for (j = 1; j <= 5; j++) {
        if (i == j || f[i][j] == 0) continue;
        for (k = 1; k <= 5; k++) {
          if (k == j || k == i || f[j][k] == 0) continue;
          for (kk = 1; kk <= 5; kk++) {
            if (kk == k || kk == j || f[kk][k] == 0) continue;
            if (kk == i) {
              flag = 1;
              goto loop;
            }
          }
        }
      }
    }
    for (i = 1; i <= 5; i++) {
      for (j = 1; j <= 5; j++) {
        if (i == j || f[i][j] == 1) continue;
        for (k = 1; k <= 5; k++) {
          if (k == j || k == i || f[j][k] == 1) continue;
          for (kk = 1; kk <= 5; kk++) {
            if (kk == k || kk == j || f[kk][k] == 1) continue;
            if (kk == i) {
              flag = 1;
              goto loop;
            }
          }
        }
      }
    }
  loop:
    if (flag)
      puts("WIN");
    else
      puts("FAIL");
  }
}
