X=50000 Y=50000 s=repr(X)+' '+repr(Y) print(s) M1=int(input()) Mx=M1//2 My=M1//2-Mx X+=Mx Y+=My s=repr(X)+' '+repr(Y) print(s) M2=int(input()) if M2==M1: X-=Mx*2