k = int(input())

def sum_digit(num):
    strnum = str(num)
    sumdig = 0
    for d in strnum:
        sumdig += int(d)
    return num / sumdig

s = []
i = 1
while True:
    if len(s) == k:
        break
    if sum_digit(i) <= sum_digit(i+1):
        s.append(i)
        print(i)
    i += 1
