import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import numpy as np X = int(read()) N = 10 ** 5 K = 10 ** 9 full = X + (-X) % N if full == 0: full += N M = full // N col = np.empty(M, np.int64) row = np.empty(N, np.int64) col[0] = 1 col[1:] = K row[: full - X] = 1 row[full - X:] = K row[0] = 0 row[0] = (X - row.sum()) % K if row[0] == 0: row[0] = K - 1 row[1] += 1 print(N, M, K) print('*', *col) print(*row, sep='\n')