import sys def f(m,n): print m,n sys.stdout.flush() res=int(raw_input()) if res==0: sys.exit() return res a=f(0,0) b=f(0,1000000000) x=(a+b-1000000000)/2 y=a-x f(x,y)