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() if a==min(a,b,c,d):X,Y,P=X-P//2,Y+P//2,P//2 if b==min(a,b,c,d):X,Y,P=X+P//2,Y+P//2,P//2 if c==min(a,b,c,d):X,Y,P=X+P//2,Y-P//2,P//2 if d==min(a,b,c,d):X,Y,P=X-P//2,Y-P//2,P//2 c-=1