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