import sys print(0, 0) sys.stdout.flush() a, b, d1 = map(int, input().split()) print(10**9, 0) sys.stdout.flush() a, b, d2 = map(int, input().split()) print((int)(d1 - d2 + 10**9) / 2, (int)(d1 + d2 - 10**9) / 2) sys.stdout.flush()