K = int(input())

def snk(n):
   s = 0
   for i in str(n):
       s += int(i)
   return n / s

x = 1
y = 1
for _ in range(K):
    print(x)
    if snk(x + y) > snk(x + y * 10):
        y *= 10
    x += y
