X=Y=0#origin P=100000#border c=100 while c: print(X-P,Y+P);a=input() print(X+P,Y+P);b=input() print(X+P,Y-P);c=input() print(X-P,Y-P);d=input() P//=2 if a==min(a,b,c,d): X,Y=X-P,Y+P elif b==min(a,b,c,d): X,Y=X+P,Y+P elif c==min(a,b,c,d): X,Y=X+P,Y-P else: X,Y=X-P,Y-P c-=1