import sys from sys import stdin N = int(stdin.readline()) if N == 0: print (9,1) elif N == 1: print (18,1) else: print (9*(N+1),2)