#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846264338327950288;
int in_c() {
  int c;
  while ((c = getchar()) <= ' ') {
    if (!~c) return ~0;
  }
  return c;
}
int in() {
  int x = 0, c;
  while ((unsigned int)((c = getchar()) - '0') >= 10) {
    if (c == '-') return -in();
    if (!~c) return ~0;
  }
  do {
    x = 10 * x + (c - '0');
  } while ((unsigned int)((c = getchar()) - '0') < 10);
  return x;
}
int main() {
  int M;
  while (cin >> M) {
    bool g[5][5];
    memset(g, 0, sizeof(g));
    for (int i = 0, e__ = (M); i < e__; ++i) {
      int a, b;
      cin >> a >> b;
      --a, --b;
      g[a][b] = g[b][a] = true;
    }
    bool ok = false;
    for (int i = 0, e__ = (5); i < e__; ++i)
      for (int j = 0, e__ = (i); j < e__; ++j)
        for (int k = 0, e__ = (j); k < e__; ++k) {
          int aq = 0;
          if (g[i][j]) ++aq;
          if (g[j][k]) ++aq;
          if (g[k][i]) ++aq;
          if (aq == 0 || aq == 3) ok = true;
        }
    if (ok)
      cout << "WIN" << endl;
    else
      cout << "FAIL" << endl;
  }
  return 0;
}
