k = int(input())

cnt = 0

def s(n):
    ans = 0
    while n // 10 > 0:
        ans += n % 10
        n //= 10
    return ans + n


for i in range(1, 10**15):
    if i/s(i) <= (i+1)/s(i+1):
        cnt += 1
        if cnt > k:
            exit()
        print(i)
