#include <iostream>
#include <string>
#include <cstdlib>
#include <windows.h>
#include <algorithm>

using namespace std;

int main() {

	SetConsoleCP(1251);
	SetConsoleOutputCP(1251);

	istream_iterator<char> input(cin), eof;

	bool has = false;
	char prev = '!';

	auto check = [&has, &prev](char ch)
	{
		if (ch == '!') cin.clear(ios::eofbit);
		has |= ((prev == 'н' && ch == 'о') || (prev == 'о' && ch == 'н'));
		prev = ch;
	};
	
	for_each(input, eof, check);

	cout << (has ? "WIN!" : "FAIL!") << endl;
}
