# -*- coding: utf-8 -*-
k = int(input())


def sn(n):
    sn = 0
    while n >= 10:
        n, s = divmod(n, 10)
        sn += s
    sn += n
    return sn


from math import log10


def digit(n):
    if n == 0:
        return 0

    return int(log10(n))


snuke = 0
for _ in range(k):
    tmp_digit = digit(snuke)
    snuke += 10**tmp_digit
    next_digit = digit(snuke)
    if next_digit > tmp_digit:
        snuke += 9 * 10**tmp_digit

    print(snuke)
