#include <bits/stdc++.h>
using namespace std;
int M;
int rel[11][11];
int main() {
  while (cin >> M) {
    memset(rel, false, sizeof(rel));
    bool ok = false;
    for (int i = 0; i < (int)M; i++) {
      int a, b;
      cin >> a >> b;
      a--, b--;
      rel[a][b] = rel[b][a] = true;
    }
    for (int i = 0; i < (int)5; i++)
      for (int j = 0; j < (int)i; j++)
        for (int k = 0; k < (int)j; k++) {
          if (rel[i][j] && rel[j][k] && rel[k][i] ||
              !rel[i][j] && !rel[j][k] && !rel[k][i])
            ok = true;
        }
    puts(ok ? "WIN" : "FAIL");
  }
}
