#include <bits/stdc++.h>
using namespace std;
bool vis[10];
bool li[10][10];
int main() {
  int m;
  cin >> m;
  for (int i = 0; i < m; i++) {
    int x, y;
    cin >> x >> y;
    li[x][y] = 1;
    li[y][x] = 1;
  }
  for (int i = 1; i <= 5; i++) {
    int ans = 0;
    for (int j = 1; j <= 5; j++) ans += li[i][j];
    if (abs(4 - ans) != 2) {
      cout << "WIN\n";
      return 0;
    }
  }
  cout << "FAIL\n";
}
