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