import math
hahaha = int(input())
t = 1000
min = 1e16
keta = 15
nine = "999999999999999999999"
ans = []
for i in range(keta-3):
    i = keta - i
    for j in range(1,t-9):
        j = t - j
        st = str(j)
        hoge = st+nine
        target = int(hoge[0:i])
        sum = 0
        ltarget = list(str(target))
        for a in ltarget:
            sum += int(a)
        num = target / sum
        if min >= num:
            min = num
            # print(target,num)
            ans.append(target)
for i in range(1,t):
    i = t - i
    li = list(str(i))
    sum = 0
    for a in li:
        sum += int(a)
    num = i / sum
    if min >= num:
        min = num
        # print(i,num)
        ans.append(i)
ans.sort()
for i in range(hahaha):
    print(ans[i])