from operator import itemgetter
K = int(input())
def snuke(n):
    return n / sum([int(i) for i in str(n)])

L = [(i,snuke(i)) for i in range(1,10**5)]
L = [i[0] for i in sorted(L,key=itemgetter(1))[:K]]
print(*L,sep='\n')