k = int(input())
if k <= 9 :
    roop = k
    for i in range(1,k+1):
        print(i)
else:
    for i in range(1,10):
        print(i)
    counter = 0
    max_count = k-9
    memo = 1
    for i in range(19,10000000000,10):
        if i / digsums(i) < (i+100)/digsums(i+100) and i / digsums(i) < (i+10)/digsums(i+10) and memo < (i/digsums(i)) :
            memo = (i/digsums(i))
            counter +=1
        if counter == max_count:
            break