def S(n):
    k=list(str(n))
    import functools
    return functools.reduce(lambda x,y:x+y,[int(i) for i in k])
k=int(input())
A=list()
i=0
while len(A)<k:
    i+=1
    if i/S(i)<=(i+1)/S(i+1):
        A.append(i)
for j in A:
    print(j)
   