#include <bits/stdc++.h>
using namespace std;
int m;
vector<vector<int> > G(5);
int A[5][5];
int main() {
  cin >> m;
  for (int i = 0; i < m; i++) {
    int a, b;
    cin >> a >> b;
    a--;
    b--;
    A[a][b] = 1;
    A[b][a] = 1;
  }
  for (int i = 0; i < 5; i++)
    for (int j = i + 1; j < 5; j++)
      for (int z = j + 1; z < 5; z++) {
        if ((A[i][j] && A[j][z] && A[z][i]) ||
            (!A[i][j] && !A[j][z] && !A[z][i])) {
          cout << "WIN" << endl;
          return 0;
        }
      }
  cout << "FAIL" << endl;
  return 0;
}
