#include<bits/stdc++.h>//Ô¤¹À£º0
using namespace std;
int map[10005][10005],command,n,m,fx=0;
int main(){
	while (true) {
		string feedback;
		/*command = ...;
		cout << command << endl;
		cin >> feedback;*/
		cout << command << endl;
		feedback = get_feedback(command);
		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"){
				if()
			}
		}
	}
	return 0;
}