K = int(input())

#def sunuke_calc(i):
#    S = sum([int(c) for c in str(i)])
#    #print('num', i)
#    #print('sunuke', i/S)
#    return i / S

def sunuke_gen():
    i=1
    nine_num = 0
    i < nine_num*10
    while True:
        yield int(str(i) + '9'*nine_num)
        i+=1
        if nine_num <=2:
            if i == 10:
                i=1
                nine_num += 1
        else:
            if i == nine_num*10:
                i=10
                nine_num += 1


for n, sunuke in enumerate(sunuke_gen(), start=1):
    print(sunuke)
    if n == K:
        exit()
    

#for n in range(1, 100):
#    if all([sunuke_calc(n) <= sunuke_calc(m) for m in range(n, 10000)]):
#        sunuke_numbers.append(n)
#    if len(set(sunuke_numbers)) == K:
#        for s in set(sunuke_numbers):
#            print(s)
#        exit()

