K = int(input())

n = 1
k = 1
while k <= K:
    s1 = 0
    for n_i in str(n):
        s1 += int(n_i)
    x = n / s1

    m = n + 1
    s2 = 0
    for m_i in str(m):
        s2 += int(m_i)
    y = m / s2

    if x <= y:
        print(n)
        k += 1
    n += 1
