k = int(input())
cnt = 0
def func(num):
    return num/sum(list(map(int,list(str(num)))))
num = 1
while cnt < k:
    now = func(num)
    tmp = func(num + 1)
    if now <= tmp:
        cnt += 1
        print(num)
    num += 1