#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p[15], i, j;
  while (cin >> n) {
    memset(p, 0, sizeof(p));
    for (i = 1; i <= n; i++) {
      int x, y;
      cin >> x >> y;
      p[x]++;
      p[y]++;
    }
    int pos = 0;
    for (i = 1; i <= 5; i++)
      if (p[i] >= 3 || p[i] <= 1) pos = 1;
    if (pos)
      cout << "WIN" << endl;
    else
      cout << "FAIL" << endl;
  }
}
