n = int(input()) if n == 0: print(9, 1) elif n == 1: print(26, 1) else: # This part is a placeholder and would need to be derived based on further analysis # For example, for n=2, the correct answer might be 37 1 print(9 * (2 * n + 1), 1)