#include <bits/stdc++.h>
using namespace std;
signed main() {
  int n;
  cin >> n;
  vector<vector<int>> a(5, vector<int>(5, 0));
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    --x, --y;
    a[x][y] = a[y][x] = 1;
  }
  for (int i = 0; i < 5; i++) {
    for (int j = i + 1; j < 5; j++) {
      for (int k = j + 1; k < 5; k++) {
        if (a[i][j] && a[j][k] && a[k][i]) {
          cout << "WIN";
          return 0;
        }
        if (!a[i][j] && !a[j][k] && !a[k][i]) {
          cout << "WIN";
          return 0;
        }
      }
    }
  }
  cout << "FAIL";
}
