N = int(input()) print(8 + 18 * N,1)