k = int(input())

def digsums(x):
    s = str(x)
    sl = list(s)
    dig_sums = 0
    for i in sl:
        dig_sums += int(i)
    return dig_sums
    
    
if k <= 9 :
    roop = k
    for i in range(1,k+1):
        print(i)
else:
    for i in range(1,10):
        print(i)
    memo = 1
    count = 0
    for i in range(19,100000000,10):
        if i / digsums(i) < (i+100)/digsums(i+100) and i / digsums(i) < (i+10)/digsums(i+10) and memo < (i/digsums(i)) :
            print(i)
            memo = (i/digsums(i))
            count +=1
        if count == k:
            break
        