k = int(input())

def sunuke(n):
    return n / sum(map(int,list(str(n))))

count_k = 0
for i in range(1,10**15+1):
    if sunuke(i) <= sunuke(i+1):
        count_k += 1
        print(i)
        if count_k == k:
            break