K=int(input())

i=-((-K)//9)
j=((K-1)%9)+1
for n in range(i):
    if n==i-1:
        for m in range(j):
            print(str(m+1)+"9"*n)
    else:
        for m in range(9):
            print(str(m+1)+"9"*n)