K = int(input())

ans = 0
k = 100
c = 0
for i in range(K):
    if c == 19 + 9*(len(str(k))-3):
        c = 0
        k *= 10
    if i < 9:
        ans += 1
    elif i < 18:
        ans += 10
    else:
        ans += k
        c += 1
    print(ans)
