#include <bits/stdc++.h>
using namespace std;
int arr[10][10];
int main() {
  int n;
  cin >> n;
  int t1, t2;
  for (int i = 0; i < n; i++) {
    cin >> t1 >> t2;
    arr[t1][t2] = 1;
    arr[t2][t1] = 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 (arr[i][j] && arr[i][k] && arr[k][j]) {
          cout << "WIN";
          return 0;
        }
        if (!arr[i][j] && !arr[i][k] && !arr[k][j]) {
          cout << "WIN";
          return 0;
        }
      }
    }
  }
  cout << "FAIL";
}
