#include <bits/stdc++.h>
using namespace std;
int m, a[10][10];
string res = "FAIL";
int main() {
  cin >> m;
  memset(a, 0, sizeof a);
  for (int i = 0; i < m; ++i) {
    int x, y;
    cin >> x >> y;
    --x;
    --y;
    a[x][y] = a[y][x] = 1;
  }
  for (int i = 0; i < 5; ++i)
    for (int j = i + 1; j < 5; ++j)
      for (int k = j + 1; k < 5; ++k)
        if ((a[i][j] && a[j][k] && a[k][i]) ||
            (!a[i][j] && !a[j][k] && !a[k][i]))
          res = "WIN";
  cout << res;
  return 0;
}
