def snuke(a):
    res=0
    n=a
    while a>0:
        res+=a%10
        a//=10
    return float(n)/float(res)
K=int(input())
snuke_number=[i for i in range(1,10)]
s=snuke_number[-1]
for j in range(1,9+1):
    snuke_number.append(s+j*10)

s=snuke_number[-1]
for j in range(1,19+1):
    snuke_number.append(s+j*100)

for i in range(2,14):
    for j in range((i+1)*10-i):
        snuke_number.append(snuke_number[-1]+10**(i+1))

snuke_number_final=[]
for i in range(len(snuke_number)):
    f=1
    for s in snuke_number[i+1:]:
        if snuke(snuke_number[i])>snuke(s):
            f=0
            break
    if f==1:
        snuke_number_final.append(snuke_number[i])
print(snuke_number_final[:K])
