mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline print(0, 0) sys.stdout.flush() D = int(input()) if D == 0: exit() if D <= 100000: print(0, D) sys.stdout.flush() d = int(input()) if d == 0: exit() print(d//2, D - d//2) sys.stdout.flush() exit() else: print(D - 100000, 100000) sys.stdout.flush() d = int(input()) if d == 0: exit() print(D - 100000 + d // 2, 100000 - d//2) sys.stdout.flush() exit() if __name__ == '__main__': main()