import sys print('0 0') sys.stdout.flush() left = int(input()) if left == 0: sys.exit() print('100000 0') sys.stdout.flush() right = int(input()) if right == 0: sys.exit() y = left + right x = left - y print(x, -y) sys.stdout.flush()