#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void checkmin(T &a, T b) {
  if (b < a) a = b;
}
template <class T>
inline void checkmax(T &a, T b) {
  if (b > a) a = b;
}
const double eps = 1e-8;
int g[6][6];
int main() {
  int m;
  for (cin >> m; m; --m) {
    int a, b;
    cin >> a >> b;
    --a, --b;
    g[a][b] = g[b][a] = 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 ((g[i][j] && g[j][k] && g[k][i]) ||
            (!g[i][j] && !g[j][k] && !g[k][i])) {
          cout << "WIN\n";
          return 0;
        }
  printf("FAIL\n");
}
