from itertools import chain, count, islice

def f():
    j = int(input())
    cs = '123456789'
    xs = ['123456789', (c+'9' for c in cs)] 
    for x in chain(*xs):
        if j == 0: return
        print(x)
        j -= 1

    for i in range(2, 10):
        for n in range(i-1, i*10-1):
            if j == 0: return
            print(int(str(n)+('9'*i)))
            j -= 1

f()