N = int(input()) L = [3,1,4,1,5] pi = 3.1415926535 if N == 0: num = 9 else: num = 8 + 9*N*2 ans = [num,1] print(*ans)