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