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