#include using namespace std; int main() { int line = 199, col = 0; while (true) { cout << line << " " << col << "\n"; cout.flush(); int val; cin >> val; if (val == 0) return 0; if (val > 0) line -= 1; else col += 1; } }