N = int(input()) res = '' for i in range(N): res += str(9 - i) * (N) print(res)