#include <bits/stdc++.h>
using namespace std;

char mapp[101][101];
bool all()
{
	for(int i = 1; i <= 10; i ++)
	{
		bool g = false;
		for(int j = 1; j <= 10; j ++)
		{
			if(mapp[i][j] == '#')
			{
				g = !g;
			}
		}
		if(g)
		{
			return false;
		}
	}
	return true;
}
int main()
{
	int n = 0, m = 0;
	string feedback = "FAIL";
	while(true)
	{
		string command;
		if(feedback == "E" || feedback == "W" || feedback == "S" || feedback == "N")
		{
			command = "GO";
		}
		if(feedback == "SUCC")
		{
			command = "GO";
		}
		if(feedback == "FAIL")
		{
			command = "LEFT";
		}
		cout << command << endl;
		feedback = get_feedback(command);
		if(all())
		{
			cout << "END" << endl;
			cout << "3 3" << endl;
			cout << "###" << endl;
			cout << "#.#" << endl;
			cout << "###" << endl;
			break;
		}
	}
	return 0;
}