n = int(input()) M = '9'*(n+1) print(M, 1)