K = int(input())
sunuke_num = [0] * 250000
for num in range(1, 250001):
    sunuke_num[num-1] = num / sum([int(i) for i in list(str(num))])

for i in range(len(sunuke_num)-1):
    flg = 1
    for j in range(i + 1, len(sunuke_num)):
        if sunuke_num[i] > sunuke_num[j]:
            flg = 0
            break
    if flg:
        K -= 1
        print(i+1)
        if K == 0:
            break


