print(0,0) a = int(input()) print(10**9,0) b = int(input()) y = (a + b - 10**9) // 2 x = a - y print(x,y)