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