import math
n=int(input())
base=list(map(str,[1,2,3,4,5,6,7,8,9]))
arr=[j for j in range(10,100)][::-1]
#print(arr)
count=0
for i in range(math.ceil(n/9)):
    tmp=[]
    if count<27:
        for k in base:
            print(k)
            count+=1
            if count==n:
                break
            tmp.append(k+"9")
        base=tmp

plusnum="99"
#print(count)
while count<n:
    initnum=99999999999999999999
    tmp=[]
    for j in arr:
        number=str(j)+plusnum
        sumnumber=0
        for nn in number:
            sumnumber+=int(nn)
        smallnum=int(str(j)+plusnum)/sumnumber
        if smallnum<initnum:
            tmp.append(number)
            initnum=smallnum
    if n<len(tmp)+count:
        for i in range(n-count):
            print(tmp[::-1][i])
    else:
        for i in tmp[::-1]:
            print(i)
    plusnum+="9"
    count+=len(tmp)
"""
    else:
        plus=(count//9)-1
        plusnum=""
        for num in range(plus):
            plusnum+="9"

        initnum=99999999999999999999
        for j in arr:
            number=str(j)+plusnum
            sumnumber=0
            for nn in number:
                sumnumber+=int(nn)
            smallnum=int(str(j)+plusnum)/sumnumber
            if smallnum<initnum:
                tmp.append(number)
                initnum=smallnum
                print(tmp)
        #print(base)
"""
