import sys def f(x,y): print(x,y) sys.stdout.flush() A=int(input()) if A==0:exit() return A print(0,0) a=int(input()) if a==0:exit() print(0,10**10) b=int(input()) if b==0:exit() x=(a+b-10**10)//2 print(x,a-x)