N = int(input()) x = 18*N+8 y = 1 if N == 0: x = 9 y = 1 print(' '.join(map(str,[x,y])))