n = int(input()) mj = [str(9-i) for i in range(n)] ans = mj*n ans = "".join(ans) print(ans)