#include <bits/stdc++.h>
using namespace std;
bool vis[6][6];
int Freq[6];
int main() {
  int m;
  scanf("%d", &m);
  for (int i = 0; i < m; i++) {
    int Friend1, Friend2;
    scanf("%d%d", &Friend1, &Friend2);
    Freq[Friend1]++, Freq[Friend2]++;
  }
  for (int i = 1; i <= 5; i++) {
    if (Freq[i] >= 3 || Freq[i] <= 1) {
      printf("WIN\n");
      ;
      return 0;
    }
  }
  printf("FAIL\n");
  return 0;
}
