def sn(x):
    return x / sum(map(int, str(x)))

##10 ** (d - 1) <= n < 10 ** dのとき、n / S(n) の下界
def lb(d):
    return 10 ** (d - 1) / (9 * d)

def f(N):
    d = 1
    while lb(d) <= sn(N):
        d += 1

    buf = float('inf')
    idx = -1
    for i in range(N, 10 ** (d - 1)):
        if buf > sn(i):
            buf = sn(i)
            idx = i
    return idx

if __name__ == '__main__':
    k = int(input())
    a = []
    N = 0
    while len(a) < k:
        N =  f(N + 1)
        print(N)
        a += [N]