#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, i, k, j, a, b, matr[6][6] = {0};
  cin >> m;
  for (i = 0; i < m; i++) {
    cin >> a >> b;
    matr[a][b] = 1;
    matr[b][a] = 1;
  }
  for (i = 1; i <= 5; i++) {
    for (j = 1; j <= 5; j++) {
      for (k = 1; k <= 5; k++) {
        if ((i != j && i != k && j != k) &&
            ((matr[i][j] == 1 && matr[j][k] == 1 && matr[i][k] == 1) ||
             (matr[i][j] == 0 && matr[j][k] == 0 && matr[i][k] == 0))) {
          cout << "WIN";
          return 0;
        }
      }
    }
  }
  cout << "FAIL";
  return 0;
}
