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