print(0,0) d0 = int(input()) d = 100000 print(d,0) d1 = int(input()) y = (d0+d1-d)//2 x = (d0-d1+d)//2 print(x,y) d2 = int(input())