#include using namespace std; int main() { int x; for(int i = 0; i < 200; ++i) for(int j = 0; j < 200; ++j) { cout << i << ' ' << j << '\n'; cout.flush(); cin >> x; if(x == 0) { i = 205; j = 205; } else if(x > 0) { j = 205; } } return 0; }