K = int(input())
tot = 1
nines = ''
while K >= tot:
    if tot < 10:
        print(tot)
        if K < tot:
            break
        tot += 1
        continue
    nines += '9'

    for i in range(1, 10):
        if K < tot:
            break
        print(str(i) + nines)
        tot += 1
