#include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++) #define REMOVE(Itr,n) (Itr).erase(remove((Itr).begin(),(Itr).end(),n),(Itr).end()) #define PB_VEC(Itr1,Itr2) (Itr1).insert((Itr1).end(),(Itr2).begin(),(Itr2).end()) typedef long long ll; #define MAX_V 1000000000LL int main(){ ll dist1,dist2; cout << 0 << " " << 0 << endl; cin >> dist1; if(dist1 == 0) return 0; cout << 0 << " " << MAX_V << endl; cin >> dist2; if(dist2 == 0) return 0; ll ans_x = (dist1 + dist2 - MAX_V) / 2; ll ans_y = dist1 - ans_x; cout << ans_x << " " << ans_y << endl; return 0; }