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