K = int(input())

def S(n):
    return sum(int(c) for c in str(n))

n9 = 0	# the number of 9s

count = 0
upper = 1
while count < K:
    n = int(str(upper) + ('9' * n9))
    if n <= S(n) * (10 ** n9):
        print(n)
        count += 1
        upper += 1
    else:
        n9 += 1
        upper //= 10
