def get_sum(n):
    s = 0
    while True:
        s += n%10
        n = n//10
        if n == 0:
            break
    return s


K = int(input())    

n = 1
m = 2
cnt = 0
while True:
    if n * get_sum(m) <= m * get_sum(n):
        print(n)
        cnt += 1
    
    if cnt == K:
        break
    n += 1
    m += 1