#include <bits/stdc++.h>
using namespace std;
long long arr[6][6];
int main() {
  long long i, j, m, k, f;
  cin >> m;
  while (m--) {
    cin >> i >> j;
    arr[i][j] = 1;
    arr[j][i] = 1;
  }
  f = 0;
  for (i = 1; i < 6; i++) {
    for (j = 1; j < 6; j++) {
      for (k = 1; k < 6; k++) {
        if (i != j and i != k and j != k and
            ((arr[i][j] and arr[j][k] and arr[k][i]) or
             (!arr[i][j] and !arr[j][k] and !arr[k][i]))) {
          f = 1;
          break;
        }
      }
      if (f) break;
    }
    if (f) break;
  }
  if (f)
    cout << "WIN\n";
  else
    cout << "FAIL\n";
  return 0;
}
