import sys def ask(x, y): print(x, y) d = int(input()) if d == 0: sys.exit(0) return d N = 10 ** 9 A = ask(0, 0) B = ask(0, N) X = (A + B - N) / 2 Y = A - X ask(X, Y)