#include <bits/stdc++.h>
using namespace std;
void prepare() {}
void solve() {
  int n;
  cin >> n;
  vector<vector<int> > v(5, vector<int>(5));
  for (int i = 0; i < n; ++i) {
    int p, q;
    cin >> p >> q;
    v[p - 1][q - 1] = v[q - 1][p - 1] = 1;
  }
  int a = 0;
  for (int i = 0; i < 5; ++i)
    for (int j = i + 1; j < 5; ++j)
      for (int k = j + 1; k < 5; ++k)
        if (v[i][j] && v[i][k] && v[j][k])
          a = 1;
        else if (!v[i][j] && !v[i][k] && !v[j][k])
          a = 1;
  if (a)
    cout << "WIN";
  else
    cout << "FAIL";
}
int main() {
  prepare();
  solve();
  return 0;
}
