#include <bits/stdc++.h>
using namespace std;
const int N = 100500;
bool was[10][10];
int main() {
  srand(time(NULL));
  int m;
  cin >> m;
  for (int i = 1; i <= m; i++) {
    int x, y;
    cin >> x >> y;
    was[x][y] = true;
    was[y][x] = true;
  }
  for (int i = 1; i <= 5; i++) {
    for (int j = i + 1; j <= 5; j++) {
      for (int t = j + 1; t <= 5; t++) {
        if (was[i][j] && was[j][t] && was[i][t]) {
          cout << "WIN", exit(0);
        }
        if (!was[i][j] && !was[j][t] && !was[i][t]) {
          cout << "WIN", exit(0);
        }
      }
    }
  }
  cout << "FAIL";
  return 0;
}
