#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 5, m, i, j;
  bool cnt[6][6];
  memset(cnt, false, sizeof(cnt));
  scanf("%d", &m);
  while (m--) {
    scanf("%d %d", &i, &j);
    cnt[i][j] = cnt[j][i] = true;
  }
  bool res = false;
  for (i = 1; i <= n && !res; i++)
    for (j = i + 1; j <= n && !res; j++)
      for (int k = j + 1; k <= n && !res; k++) {
        if (cnt[i][j] && cnt[j][k] && cnt[k][i]) res = true;
        if (!cnt[i][j] && !cnt[j][k] && !cnt[k][i]) res = true;
      }
  if (res)
    puts("WIN");
  else
    puts("FAIL");
  return 0;
}
