#include #include #include #include using namespace std; int n = 200; int main() { int x, y, rez; x = 0; y = n - 1; while(1) { cout << x << ' ' << y << "\n"; cout.flush(); cin >> rez; if(rez == 0) break; if(rez < 0) x++; else y--; } return 0; }