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