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)
    counter = 0
    max_count = k-9
    for i in range(19,1000000000000000,10):
        if digsums(i)<digsums(i+10):
            print(i)
            counter += 1
        if counter == max_count:
            break
        