def S(x) :
    L = list(str(x))
    ans = 0
    for i in range(len(L)) :
        ans += int(L[i])
    return ans

N = int(input())
counter = 0
n = 1
m = n + 1
while counter != N :
    if n/m <= S(n)/S(m) :
        print(n)
        counter += 1
    n += 1
    m += 1
    