#include using namespace std; #define FOR(i,l,r) for(int i = (int) (l);i < (int) (r);i++) #define ALL(x) x.begin(),x.end() template bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; } template bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; } typedef long long ll; const int MAX = 1000000000; int main() { ll A,B,C; printf("%d %d\n",0,0); fflush(stdout); scanf("%lld",&A); printf("%d %d\n",0,MAX); fflush(stdout); scanf("%lld",&B); printf("%d %d\n",MAX,0); fflush(stdout); scanf("%lld",&C); ll X = (A + B - MAX) / 2; ll Y = (A + C - MAX) / 2; printf("%lld %lld\n",X,Y); fflush(stdout); return 0; }