#include <bits/stdc++.h>
using namespace std;
int n;
bool x[6][6];
int a, b;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a >> b;
    x[a][b] = 1;
    x[b][a] = 1;
  }
  for (int i = 1; i <= 3; i++)
    for (int j = i + 1; j <= 4; j++)
      for (int k = j + 1; k <= 5; k++)
        if ((x[i][j] == 1 && x[i][k] == 1 && x[j][k] == 1) ||
            (x[i][j] == 0 && x[i][k] == 0 && x[j][k] == 0)) {
          cout << "WIN";
          return 0;
        }
  cout << "FAIL";
  return 0;
}
