#include #include #include using namespace std; using ll = long long; ll ask(ll x,ll y){ cout<>d; if(d==0) exit(0); return d; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll k = ask(0,0); ll kk = ask(1000000000,0); // x + y = k // 100000 - x + y = kk ll y = (k+kk) / 2; ll x = k - y; ask(x,y); }