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:    
    sumM = get_sum(M)
    for n in range(N, M):
        if n * sumM <= M * get_sum(n):
            print(n)
            cnt += 1

        if cnt == K:
            break
    if cnt == K:
        break
    N += 1
    M += 1