#include <bits/stdc++.h>
using namespace std;
int d[6][6] = {0};
int m, a, b;
bool ans = false;
int main() {
  scanf("%d", &m);
  for (int i = 0; i < m; i++) {
    scanf("%d %d", &a, &b);
    d[a - 1][b - 1] = 1;
    d[b - 1][a - 1] = 1;
  }
  for (int f = 0; f < 5; f++) {
    for (int s = 0; s < 5; s++) {
      for (int t = 0; t < 5; t++) {
        if (f == s || s == t || t == f) continue;
        if (d[f][s] && d[s][t] && d[f][t]) ans = true;
        if (!d[f][s] && !d[s][t] && !d[f][t]) ans = true;
      }
    }
  }
  printf((ans) ? "WIN" : "FAIL");
}
