#include<bits/stdc++.h> using namespace std; string command; int n,m; int main() { while(1) { sting feedback; command="LEFT"; cout<<command<<endl; cin>>feedback; if(all_explored) { cout<<"END"<<endl; cout<<n<<" "<<m<<endl; for(int i=0;i<nn;i++) { for(int j=0;j<m;j++) { cout<<map[i][j]; } cout<<endl; } break; } } return 0; }