def sumd(n):
    res=0
    while n>0:
        res+=(n%10)
        n=int(n/10)
    return res

k=int(input())

cnt=0
n=1
m=n+1
x=list()

while cnt<k:
    if (n/sumd(n))<=(m/sumd(m)):
        cnt+=1
        x.append(n)
    n+=1
    m=n+1
for i in x:
    print(i)