k = int(input())
ans = []
for i in range(1,136):
    ans.append(int(str(i%9)+'9'*(i//9)))
j = 0
for i in range(k):
    if ans[j]/(j+1) > ans[j+1]/(j+2):
        j += 1
    else:
        print(ans[j])
        j += 1