#include <bits/stdc++.h>
using namespace std;
void solve() {
  int m;
  bool rel[5][5];
  int col[5], anc[5];
  for (int i = 0; i < 5; ++i) {
    for (int j = 0; j < 5; ++j) {
      rel[i][j] = false;
    }
    col[i] = 0;
    anc[i] = -1;
  }
  cin >> m;
  bool ans = false;
  for (int i = 0; i < m; ++i) {
    int ai, bi;
    cin >> ai >> bi;
    --ai;
    --bi;
    rel[ai][bi] = true;
    rel[bi][ai] = true;
  }
  for (int i = 0; i < 5 - 2; ++i) {
    for (int j = i + 1; j < 5 - 1; ++j) {
      for (int k = j + 1; k < 5; ++k) {
        if ((rel[i][j] && rel[j][k] && rel[k][i]) ||
            (!(rel[i][j] || rel[j][k] || rel[k][i]))) {
          cout << "WIN";
          return;
        }
      }
    }
  }
  cout << "FAIL";
  return;
}
int main() {
  solve();
  return 0;
}
