import sys input = sys.stdin.readline N = int(input()) if N == 0: print(9, 1) exit(0) x = 2 + 9 * N print(x * x, 1)