#include<bits/stdc++.h>
using namespace std;
char mapp[20005][20005];
string feedback;
char d;
int posx=10000,posy=10000,t=49995;
int main(){
	
	for(int i=1;i<=20000;i++){
		for(int j=1;j<=20000;j++){
			mapp[i][j]='#';
		}
	}
	cout<<"LEFT";
	cin>>feedback;
	d=feedback[0];
	while(t--){
		mapp[posx][posy]='.';
		cout<<"Go";
		cin>>feedback;
		if(feedback=="FAIL"){
			if(d=='N'){
				mapp[posx-1][posy]='#';
			}
			if(d=='S'){
				mapp[posx+1][posy]='#';
			}
			if(d=='E'){
				mapp[posx][posy+1]='#';
			}
			if(d=='W'){
				mapp[posx][posy-1]='#';
			}
			cout<<"LEFT";
			cin>>feedback;
			d=feedback[0];
		}else{
			if(d=="N"){
				mapp[--posx][posy]='.';
			}
			if(d=="S"){
				mapp[++posx][posy]='.';
			}
			if(d=="E"){
				mapp[posx][++posy]='.';
			}
			if(d=="W"){
				mapp[posx][--posy]='.';
			}
		}
		
	}
	
	for(int i=9590;i<=10010;i++){
		for(int j=9590;j<=10010;j++){
			cout<<mapp[i][j];
		}
		cout<<'\n';
	}
	
	return 0;
}