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