"""
すぬけ
"""
def sn(i):
    tmp = i % 10
    sn = tmp
    tmp1 = math.floor(i/10)
    while tmp1 > 0:
        tmp = tmp1 % 10
        sn += tmp
        tmp1 = math.floor(tmp1/10)
    return sn

import math
list  = []
k = int(input())
max = 0
i = 0
cnt = 1
while i != k:
    """
    si = i / sn(i)
    print("si = "+str(si))
    if si >= max:
        list.append(i)
        max = si
        i += 1
    """
    if math.floor(cnt / 10) == 0:
        list.append(cnt)
        i += 1
    elif cnt % 10 == 9:
        list.append(cnt)
        i += 1
    cnt += 1

for i in list:
    print(i)
