#include <bits/stdc++.h>
using namespace std;
double PI = 3.1415926536;
int dX[] = {1, -1, 0, 0};
int dY[] = {0, 0, 1, -1};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, x, y;
  map<int, int> mp1;
  cin >> n;
  while (n--) {
    cin >> x >> y;
    mp1[x]++, mp1[y]++;
  }
  for (int i = (1); i < (6); i++) {
    if (mp1[i] <= 1 || mp1[i] >= 3) return puts("WIN"), 0;
  }
  puts("FAIL");
}
