K=int(input())

A=(K-1)//9
B=(K-1)%9
if(K>18):
    B=8

j=1
count=18
if(A<1):
    for i in range(1,B+2):
        print(i)
else:
    for i in range(1,10):
        print(i)
    for i in range(1,B+2):
        i_str = str(i)
        print(i_str+"9")
    if(K>18):
        while(count<K):
            j_str = str(j)
            print(j_str+"99")
            count=count+1
            j=j+1
