#include <bits/stdc++.h>
using namespace std;
int main() {
  int m;
  cin >> m;
  bool ma[6][6];
  int x, y;
  memset(ma, 0, sizeof(ma));
  for (int i = 0; i < m; i++) {
    cin >> x >> y;
    ma[x][y] = 1;
    ma[y][x] = 1;
  }
  bool ans = false;
  for (int i = 1; i < 6; i++) {
    for (int j = 1; j < 6; j++) {
      if (i == j) continue;
      for (int k = 1; k < 6; k++) {
        if (i == k) continue;
        if (j == k) continue;
        bool aux = ma[i][j] & ma[j][k] & ma[i][k];
        bool aux_2 = !ma[i][j] & !ma[j][k] & !ma[i][k];
        if (aux || aux_2) ans = true;
      }
    }
  }
  if (ans)
    cout << "WIN" << endl;
  else
    cout << "FAIL" << endl;
  return 0;
}
