k=int(input())
ans=[1,2,3,4,5,6,7,8,9]
i=1
j=1
l=0
snuke=9
num=9
while len(ans)<k:
    snuke+=10**i
    ans.append(snuke)
    if snuke//(10**i)==num:
        num+=10**j
        i+=1
        l+=1
        if l==10**j-1:
            j+=1
for i in range(k):
    print(ans[i])
