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