#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int N = 2e5 + 5;
int mp[6][6] = {0};
int main() {
  long long n, m;
  int i, j;
  int t;
  int a, b;
  int maxx = 1;
  char s[100];
  cin >> m;
  for (i = 0; i < m; i++) {
    cin >> a >> b;
    mp[a][b] = mp[b][a] = 1;
  }
  for (i = 1; i <= 5; i++)
    for (j = i + 1; j <= 5; j++)
      for (int k = j + 1; k <= 5; k++) {
        if ((mp[i][j] && mp[i][k] && mp[j][k]) ||
            (!mp[i][j] && !mp[i][k] && !mp[j][k])) {
          puts("WIN");
          return 0;
        }
      }
  puts("FAIL");
  return 0;
}
