# coding: utf-8


def s(n):
    s_n = 0
    tmp = n

    while tmp > 0:
        s_n += tmp % 10
        tmp //= 10
    return s_n


k = int(input())

for i in range(1, k+1):
    if i < 10:
        print(i)
    elif i < 19:
        k = 10 ** (i//10)
        x = k * ((i+1) % 10) + k - 1
        print(x)
    else:
        j = (i+1 - 20) % 90
        m = (i+1 - 20) // 90
        k = 10 ** (m + 1)
        l = 10 ** (m + 2)
        x = l + k * (j + 1) - 1
        print(x)

