#include <bits/stdc++.h>
using namespace std;
int n, a[6][6];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (int i = 0, x, y; i < n; ++i) {
    cin >> x >> y;
    a[x][y] = 1;
    a[y][x] = 1;
  }
  for (int i = 1; i < 6; ++i) {
    for (int j = 1; j < 6; ++j)
      if (i != j) {
        for (int k = 1; k < 6; ++k)
          if (i != k && j != k) {
            if ((a[i][j] + a[j][k] + a[i][k]) % 3 == 0) {
              return cout << "WIN", 0;
            }
          }
      }
  }
  cout << "FAIL";
  return 0;
}
