# -*- Coding: utf-8 -*- i = 0 A = [] flag = 0 while i < 3: if i == 0: x,y = 0,0 elif i == 1: x,y = 100000,0 elif i == 2: x,y = 0,100000 print(x,y) try: l = int(input()) except (RuntimeError, TypeError, NameError,ValueError,EOFError): flag = 1 break A.append(l) i += 1 if flag == 0: Y = (A[0] + A[1] - 100000) // 2 X = (A[0] + A[2] - 100000) // 2 print(X,Y)