


def s(t):
    su=0
    for j in range(len(str(t))):
        su+=int(str(t)[j])
    return su 
    


k=int(input())

for i in range(0,10):
    print(i+1)
    if i+1>=k:
        break

if k>10:

    le=10
    ri=22
    snri=s(21)
    snrip1=s(22)
    co=0

    while co<k-10 :

        while float(ri/snri)>float((ri+1)/snrip1):
            snri=snrip1
            snrip1=s(ri+1)
            ri+=1

        #print(str(le)+" "+str(ri))


        while float(le/s(le))>float(ri/snri):
            le+=1
        while float(le/s(le))<=float(ri/snri):
            print(le)
            le+=1
            co+=1
            if co>=k-10 :
                break

        snri=snrip1
        snrip1=s(ri+1)
        ri+=1
    

