N=int(input()) for i in range(9,9-N,-1): print(str(i)*N,end="")