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