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)):
        if str(n)[-1] == "9":
            if n / sunuke(n) <= ((n+10)/ sunuke(n+10)):
                print(n)
                i += 1
        else:
            print(n)
            i += 1


