x=int(input()) n=10**5 m=x//n+1 k=10**9 y=(x-(n-x%n-1))%k op='*' arr1=[op]+[k]*(x//n)+[1] arr2=[k]*(x//n)+[1]*(n-x%n-1)+[y] print(n,m,k) print(*arr1) for i in range(n): print(arr2[i])