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