#include <bits/stdc++.h>
using namespace std;
int n, m;
int ans, sum, tmp;
int MAX, MIN;
int a[10][10] = {0};
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    a[x - 1][y - 1] = a[y - 1][x - 1] = 1;
  }
  for (int i = 0; i < 3; i++)
    for (int j = i + 1; j < 4; j++)
      for (int k = j + 1; k < 5; k++) {
        int x = a[i][j] + a[j][k] + a[k][i];
        if (x == 0 || x == 3) {
          printf("WIN");
          return 0;
        }
      }
  printf("FAIL");
}
