K = int(input())

count = 0

finished = False

nines = 0

while not finished:
    for i in range(1, 10):
        print(str(i) + '9' * nines)
        count += 1
        if count == K:
            finished = True
            break
    nines += 1

