#include <bits/stdc++.h>
using namespace std;
int dx[4] = {0, 0, 1, -1};
int dy[4] = {1, -1, 0, 0};
int DX[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
int DY[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
int a, b, n, ver[10 + 9];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    ver[a]++;
    ver[b]++;
  }
  for (int i = 1; i <= 5; i++) {
    if (ver[i] != 2) {
      cout << "WIN";
      return 0;
    }
  }
  cout << "FAIL";
  return 0;
}
