#include <bits/stdc++.h>
using namespace std;
bool ok[7][7];
int main() {
  int m;
  scanf("%d", &m);
  for (; m--;) {
    int a, b;
    scanf("%d %d", &a, &b);
    ok[a][b] = ok[b][a] = 1;
  }
  for (int mask = 0; mask < (1 << 5); mask++) {
    if (__builtin_popcount(mask) != 3) continue;
    vector<int> tmp;
    for (int i = 0; i < 5; i++) {
      if (mask & (1 << i)) {
        tmp.push_back(i + 1);
      }
    }
    int u = tmp[0];
    int v = tmp[1];
    int w = tmp[2];
    if (ok[u][v] && ok[u][w] && ok[v][w]) {
      printf("WIN\n");
      return 0;
    }
    if ((!ok[u][v]) && (!ok[u][w]) && (!ok[v][w])) {
      printf("WIN\n");
      return 0;
    }
  }
  printf("FAIL\n");
  return 0;
}
