def digit_sum(n):
    res = 0
    while n > 0:
        res += n % 10
        n /= 10
    return res
k = int(raw_input())
snuke_num = 1
num_of_nums = 0
increment = 1
while num_of_nums < k:
    print snuke_num
    num_of_nums += 1
    candid = snuke_num + increment
    opponent = candid + increment
    if float(candid)/digit_sum(candid) > float(opponent) / digit_sum(opponent):
        increment *= 10
    snuke_num += increment