X=int(input()) N=10**5 M=X//N+1 K=10**9 A=[K]*(X%N)+[1]*(N-X%N-1)+[(X-(N-X%N-1))%K] B=[K]*(M-1)+[1] print(N,M,K) print("*",*B) for a in A: print(a)