#include<bits/stdc++.h> using namespace std; int main(){ string s[2],d;s[0] = "LEFT";s[1] = "GO"; int c = 0,n,m; int map[1111][1111],x,y; bool all_explored = 0; while (true) { string feedback; string command = s[c%2]; c++; 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!="FAIL") d = feedbeck; else } } return 0; }