#include<bits/stdc++.h> #define int long long using namespace std; string s , ix; signed main(){ ios::sync_with_stdio(false); cin.tie(0) , cout.tie(0); cout << "LEFT" << endl; cin >> s; ix = s; cout << "GO" << endl; cin >> s; cout << "END" << endl; if(s == "FAIL"){ if(ix == "N"){ cout << "2 1" << endl; cout << "#" << endl << "." << endl; } if(ix == "S"){ cout << "2 1" << endl; cout << "." << endl << "#" << endl; } if(ix == "W"){ cout << "1 2" << endl; cout << "#." << endl; } if(ix == "E"){ cout << "1 2" << endl; cout << ".#" << endl; } } else{ if(ix == "N" or ix == "S"){ cout << "2 1" << endl; cout << "." << endl << "." << endl; } else{ cout << "1 2" << endl; cout << ".." << endl; } } return 0; }