#include #define pb push_back #define mp make_pair #define mt make_tuple #define ll long long #define pii pair #define tii tuple #define N 200005 #define mod 1000000005 #define X first #define Y second #define eps 0.0000000001 #define all(x) x.begin(),x.end() #define tot(x) x+1,x+n+1 using namespace std; int x, y; bool viz[210][210]; string s; int main() { cin.sync_with_stdio(false); cout.sync_with_stdio(false); srand(time(0)); while(1) { x = rand() % 200; x++; y = rand() % 200; y++; if(viz[x][y]) continue; viz[x][y] = 1; cout << x << ' ' << y; cout.flush(); cin >> s; if(s[0] == '0') break; } return 0; }