def quest(x,y): print(x,y,flush=True) d=int(input()) if d: return d else: exit(0) M=10**9 p=quest(0,0);q=quest(M,0) x,y=(M+p-q)//2,(-M+p+q)//2 quest(x,y)