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