K = int(input())

def sunuke(N):
    res = 0
    for n in str(N):
        res += int(n)
    return res


i, n = 0, 0
while i < K:
    n += 1
    if n / sunuke(n) <= ((n+1)/ sunuke(n+1)):
        print(n)
        i += 1
    