import math
K = int(input())

def S_n(i):
    return sum(list(map(int, str(i))))

def snuke(n):
    return n / S_n(n)

j = 1
order = 1
for i in range(K):
    print(j)
    if snuke(j + 10**(order-1)) > snuke(j + 10**order):
        order += 1
    j += 10**(order-1)