#include <bits/stdc++.h>
using namespace std;
const int maxn = 5;
bool adj[maxn][maxn];
int m1, m2;
int main() {
  int m;
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> m1 >> m2;
    adj[m1 - 1][m2 - 1] = adj[m2 - 1][m1 - 1] = true;
  }
  for (int i = 0; i < maxn; i++)
    for (int j = i + 1; j < maxn; j++)
      for (int k = j + 1; k < maxn; k++) {
        if (adj[i][j] == adj[i][k] && adj[j][k] == adj[i][k]) {
          cerr << i << " " << j << " " << k;
          cout << "WIN" << endl;
          return 0;
        }
      }
  cout << "FAIL" << endl;
  return 0;
}
