K = int(input())

curmin = 1
cnt = 0
i = 1

while cnt <= (K - 1) :
    cand_i = i / sum(list(map(int, list(str(i)))))
    
    str_len = len(list(str(i)))
    # print("DBG : ", str_len)
    if str_len == 1 :
        if cand_i <= len(list(str(i))) :
            print(i)
            cnt += 1
    else :
        if cand_i < len(list(str(i))) :
            print(i)
            cnt += 1
        
    i += 1