#include <bits/stdc++.h>
#define de 0
using namespace std;
int n,m;
int x=1,y=3,d=0;
string go(string in){
	if(de==1){
	cout<<in<<endl;
	string ds[]={string("E"),string("N"),string("W"),string("B")};
	bool _map[5][5]={{1,1,1,1,1},
					 {1,0,0,0,1},
					 {1,0,1,0,1},
					 {1,0,0,0,1},
					 {1,1,1,1,1},};
	if (in=="LEFT"){
		--d;
		d+=4;
		d%=4;
		return ds[d];}
	if (in=="RIGHT"){
		++d;
		d%=4;
		return ds[d];}
	if (in=="GO"){
		int ox=x,oy=y;
		switch(d){
			case 0:
				++x;
				break;
			case 1:
				--y;
				break;
			case 2:
				--x;
				break;
			case 3:
				++y;
				break;
		}
		if(_map[x][y]==1){
			x=ox;
			y=oy;
			return "FAIL"; 
		}else{
			return "SUCC";
		}}
	}
	if (de==0){
	
	string t;
	cout<<in<<endl;
	cin>>t;
	return t;}
	return "";
}

int main(){
	cout<<"END"<<endl;
	cout<<"3 3"<<endl;
	cout<<"###"<<endl;
	cout<<"# #"<<endl;
	cout<<"###"<<endl;
	return 0;
}