#include <bits/stdc++.h>
using namespace std;
int main() {
  int c[6][6], M;
  memset(c, 0, sizeof(c));
  cin >> M;
  for (int i = 1, u, v; i <= M; ++i) {
    cin >> u >> v;
    c[u][v] = c[v][u] = 1;
  }
  bool flag = 0;
  for (int i = 1; i <= 5; ++i)
    for (int j = 1; j <= 5; ++j)
      if (j != i)
        for (int k = 1; k <= 5; ++k)
          if (k != i && k != j)
            if ((c[i][j] + c[i][k] + c[j][k]) % 3 == 0) flag = 1;
  puts(flag ? "WIN" : "FAIL");
  return 0;
}
