#include <bits/stdc++.h>
using namespace std;
int main() {
  int r;
  cin >> r;
  bool a[10][10];
  memset(a, 0, sizeof(a));
  int x, y;
  for (int i = 0; i < r; i++) {
    cin >> x >> y;
    a[x][y] = 1;
    a[y][x] = 1;
  }
  int ans = 0;
  bool aa, bb;
  for (int i = 1; i <= 5; i++) {
    for (int j = 1; j <= 5; j++) {
      if (i == j) continue;
      for (int k = 1; k <= 5; k++) {
        if (j == k) continue;
        if (k == i) continue;
        aa = a[i][j] && a[j][k] && a[k][i];
        bb = (!a[i][j]) && (!a[j][k]) && (!a[k][i]);
        ans += aa || bb;
      }
    }
  }
  if (ans > 0)
    cout << "WIN\n";
  else
    cout << "FAIL\n";
  return 0;
}
