import numpy as np

def kyuu(i):
    su = 0
    for k in range(i):
        su += 10**k * 9
    return su

K = int(input())
b = []
i = 0
for k in range(1,10):
    b.append(10 ** i * k + kyuu(i))

i = 1
for k in range(i,10):
    b.append(10 ** i* k + kyuu(i))
    
en = 0
for i in range(2,100000):
    for k in range(i - 1,i * 10):
        b.append(10**i *k + kyuu(i))
        if len(b) > K:
            en = 1
            break
    if en == 1:
        break
for bb in b[:K]:
    print(bb)