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

k = input()
count = 0
for nn in range(1000000000000000):
    num = nn+1
    if count == int(k):
        break
    if num < 10:
        print(num)
        count += 1
    elif not str(num)[-1] == '9':
        continue
    else:
        tmp_num = int(num) + 10
        if num/func(num) <= tmp_num/func(tmp_num):
            print(num)
            count += 1