#include <bits/stdc++.h>
using namespace std;
int main() {
  int brute[10][3] = {{1, 2, 3}, {1, 2, 4}, {1, 2, 5}, {1, 3, 4}, {1, 3, 5},
                      {1, 4, 5}, {2, 3, 4}, {2, 3, 5}, {2, 4, 5}, {3, 4, 5}};
  int r, a, b, c;
  cin >> r;
  int grid[6][6];
  memset(grid, 0, sizeof(grid));
  while (r--) {
    cin >> a >> b;
    grid[a][b] = 1;
    grid[b][a] = 1;
  }
  for (int i = 0; i < 10; i++) {
    a = brute[i][0];
    b = brute[i][1];
    c = brute[i][2];
    if (grid[a][b] == grid[b][c] && grid[b][c] == grid[c][a]) {
      cout << "WIN";
      return 0;
    }
  }
  cout << "FAIL";
  return 0;
}
