k = int(input())

list_index = []
for i in range(1,k+1):
    if i < 10:
        list_index.append(i)
    else:
        ans = (i%10+1)*(10**(i//10))-1
        list_index.append(ans)
list_index = sorted(set(list_index))
for number in list_index:
    print(number)