#include <bits/stdc++.h>
using namespace std;

int main(){
	int n,m;
	while(true){
		string feedback;
		string command=...;
		cout<<command<<endl;
		cin>>feedback;
		if(all_explored){
			int map[n][m];
			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
			...
	}
	return 0;
}