k = int(input())
ans = []

def s(n):
    n = str(n)
    sn = 0
    for num in range(len(n)):
        sn += int(n[num])
    return sn

i = 1
while(len(ans) <= k):
    if i < 10:
        ans.append(i)
    else:
        if s(i)*(i+1) >= s(i+1)*i:
            ans.append(i)
    i += 1

for i in range(k):
    print(ans[i])
