#include <bits/stdc++.h>
using namespace std;
map<int, set<int> > re;
bool know(int a, int b) {
  if (count((re[a]).begin(), (re[a]).end(), b)) return true;
  return false;
}
int main() {
  int m, a, b;
  scanf("%d", &m);
  for (typeof(0) i = (0); i < (m); ++i) {
    scanf("%d%d", &a, &b);
    int r;
    if (a > b) {
      r = a;
      a = b;
      b = r;
    }
    re[a].insert(b);
  }
  for (typeof(1) i = (1); i < (6); ++i)
    for (typeof(i + 1) j = (i + 1); j < (6); ++j)
      for (typeof(j + 1) k = (j + 1); k < (6); ++k) {
        if ((know(i, j) && know(j, k) && know(i, k)) ||
            (!know(i, j) && !know(j, k) && !know(i, k))) {
          puts("WIN");
          return 0;
        }
      }
  puts("FAIL");
  return 0;
}
