#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, j, a, b, k;
  vector<vector<bool> > M;
  cin >> n;
  m = 5;
  M.resize(m);
  for (i = 0; i < m; i++) M[i].resize(m);
  for (i = 0; i < n; i++) {
    cin >> a >> b;
    a--;
    b--;
    M[a][b] = M[b][a] = true;
  }
  for (i = 0; i < m - 2; i++)
    for (j = i + 1; j < m - 1; j++)
      for (k = j + 1; k < m; k++)
        if (M[i][j] == M[i][k] && M[i][j] == M[j][k]) {
          cout << "WIN";
          return 0;
        }
  cout << "FAIL";
  return 0;
}
