#include <bits/stdc++.h>
using namespace std;
int compare(const void* a, const void* b) { return (*(int*)a - *(int*)b); }
int gcd(int a, int b) {
  if (a == 0) return b;
  if (b == 0) return a;
  if (a > b) return gcd(b, a % b);
  return gcd(a, b % a);
}
int main() {
  int a[6][6];
  int i, j, k, m, u, v;
  for (i = 1; i < 6; i++)
    for (j = 1; j < 6; j++) a[i][j] = 0;
  cin >> m;
  for (i = 0; i < m; i++) {
    cin >> u >> v;
    a[u][v] = a[v][u] = 1;
  }
  for (i = 1; i < 6; i++)
    for (j = i + 1; j < 6; j++)
      for (k = j + 1; k < 6; k++)
        if ((a[i][j] && a[j][k] && a[k][i]) ||
            (!a[i][j] && !a[j][k] && !a[k][i])) {
          cout << "WIN";
          return 0;
        }
  cout << "FAIL";
  return 0;
}
