n = int(input())
count = 0
for i in range(n):
    if i < 9:
        print(i+1)
    elif i <18:
        print(10*(i-7)-1)
        end = 99
    else:
        if i <150:
            temp = (i-17)//100
            if  (i-17)%100 == 0:
                temp-=1
                count+=1
        else:
            temp = (i - (17+90*count)) // 100
            if (i - (17+90*count)) % 100 == 0:
                temp -= 1
                count+=1
        end += 10**(temp+2)
        if (i-17)%100==0:
            end += 9*(10**(temp+2))
        elif i>150 and (i-7)%100 == 0:
            end += 9 * (10 ** (temp + 2))
        """
        if (i-17)%100 == 0:
            end -= 9*(10**(temp+3))
            end += 10**(temp+4)
        """
        print(end)