k = int(input())

ans = 0
count = 0
for i in range(k//9+1):

    for j in range(9):
        if(i>=3 and j==0):
            for k in range(9):
                ans+=10**(i-1)
                print(ans)
                count+=1

            ans-=10**(i-1)*9
        ans+=10**i
        
        print(ans)
        count+=1
        if(count==k):
            break

