def main(): print(0, 0) x0 = int(input()) print(100000, 0) x1 = int(input()) y = (x0 + x1 - 100000) // 2 x = x0 - y print(x, y) main()