n = int(input()) if n == 0: print(9, 1) else: max_s = 9 * (2 * n + 1) count = 1 print(max_s, count)