n = int(input()) if n == 0: print(9, 1) exit() print(9 * (n * 2 + 1) - 1, 1)