Z=10**6 try:print(0,0);a=int(input());print(0,Z);b=int(input());x=(a+b-Z)//2;print(x,a-x) except:exit()