N = int(input()) ans = [9*(N+1),1] print(*ans)