k = int(input())


list_index = []
i = 1
while(True):
    if i < 10:
        list_index.append(i)
    else:
        ans = (i%10+1)*(10**(i//10))-1
        list_index.append(ans)
    i += 1
    if len(set(list_index)) == k:
        break
list_index = sorted(set(list_index))

for number in list_index:
    print(number)