import sys
k=int(input())
if k<=9:
    for i in range(1,k+1):
        print(i)
    sys.exit()
for i in range(1,9):
    print(i)
count=8
s=0
lst=[]
for i in range(1,16):
    for j in range(1,100):
        if j%10==0:
            continue
        a=j*(10**i)-1
        b=list(str(a))
        c=0
        for u in b:
            c+=int(u)
        if (10**i)*c>=a:
            lst.append(a)
            count+=1
            if count==k:
                s=10
                break
        else:
            break
    if s==10:
        break
lst.sort()
s=1
while s<len(lst):
    if lst[s]==lst[s-1]:
        lst.pop(s)
    else:
        s+=1
for u in lst:
    print(u)