N = int(input()) if N == 1: print(9,1) exit() print(8 + 18 * N,1)