#include using namespace std; int x; int main() { int lin = 0, col = 199; cout << lin << ' ' << col << '\n' << flush; cin >> x; while(x) { while(col > 0 && x > 0) { --col; cout << lin << ' ' << col << '\n' << flush; cin >> x; } if(x == 0) { break; } while(lin < 200 && x < 0) { ++lin; cout << lin << ' ' << col << '\n' << flush; cin >> x; } if(x == 0) { break; } } return 0; }