#include using namespace std; int main(void){ int x=50000; int y=50000; int d1,d2,d3,d4; cout << x << y << endl; cin >> d1; if(d1==0) return 0; x = x+d1; cout << x << y << endl; cin >> d2; if(d2==0) return 0; if(d2<(2*d1)){ x = x-(d2/2); y = y+(d2/2); cout << x << y << endl; cin >> d3; if(d3==0) return 0; if(d3> d4; if(d4==0) return 0; } else{ y = y-d2; cout << x << y << endl; cin >> d4; if(d4==0) return 0; } } else{ x = 50000-d1; y = 50000; cout << x << y << endl; cin >> d2; if(d2==0) return 0; x = x+(d2/2); y = y+(d2/2); cout << x << y << endl; cin >> d3; if(d3==0) return 0; x = x-(d3/2); y = y-(d3/2); cout << x << y << endl; cin >> d4; if(d4==0) return 0; y = y-d2; cout << x << y << endl; cin >> d4; if(d4==0) return 0; } }