from bisect import insort_right
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write

def main():
    K = int(input())

    num = []
    for i in range(1, 100000):
        n = i / sum(map(int, list(str(i))))
        insort_right(num, (n, i))

    for i in num[:K]:
        write(str(i[1]) + '\n')

main()
