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

char a[307][307];

int main()
{
	for (int i = 1; i <= 307; i++)
	{
		for (int j = 1; j <= 307; j++)
		{
			a[i][j] = '#';
		}
	}
	a[153][153] = '.';
	int x = 153, y = 153;
	while(true)
	{
		string feedback;
		string command = "LEFT";
		cout << command << endl;
		cin >> feedback;
		if (all_explored)
		{
			cout << "END" << endl;
			cout << n << " " << m << endl;
			for (int i = 0; i < n; i++) 
			{
				for (int j = 0; j < m; j++) 
				{
					cout << map[i][j];
				}
				cout << endl;
			}
			break;
		}
		else
		{
			if (feedback == 'N')
			{
				cout << 
			}
		}
	}
	return 0;
}