n = int(input()) print(18 * n + 8 if n >= 1 else 9, 1)