K = int(input())

def S(n):
    m = n
    s = 0
    while m > 0:
        s  += m % 10
        m //= 10
    return s

# the number of 9s
n9 = 0
e = 10 ** n9

count = 0
upper = 1
while count < K:
    n = (upper + 1) * e - 1
    s = S(upper) + 9 * n9
    if n <= e * s:
        print(n)
        upper += 1
        count += 1
    else:
        n9 += 1
        e  *= 10
        upper //= 10
