# -*- 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) l = int(input()) 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)