K=int(input())

j=-((27-K)//90)
for i in range(min(9,K)):
    print(str(i+1))
for i in range(min(9,K-9)):
    print(str(i+1)+"9")
for i in range(min(9,K-18)):
    print(str(i+1)+"99")
for i in range(j):
    if i==j-1:
        for k in range((K-27)%90+1):
            print(str(k+10)+"9"*(i+2))
    else:
        for k in range(90):
            print(str(k+10)+"9"*(i+2))