#include <bits/stdc++.h>
using namespace std;
int du[10000], mp[110][110];
;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    mp[a][b] = mp[b][a] = 1;
  }
  for (int i = 1; i <= 5; i++) {
    for (int j = i + 1; j <= 5; j++) {
      for (int k = j + 1; k <= 5; k++) {
        if (mp[i][j] == mp[i][k] && mp[i][j] == mp[j][k]) {
          cout << "WIN" << endl;
          return 0;
        }
      }
    }
  }
  cout << "FAIL" << endl;
  return 0;
}
