N=eval(input()) t=0if N<0: n1=-N+10 n2=-N-10 n3=-N*10 t=-1 else: n1=N+10 n2=N-10 n3=N*10 t=1if n1<0: n1=-n1if n2<0: n2=-n2if n3<0: n3=-n3print(t*N,n1*t,n2*t,n3*t)