K = int(input())

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



i, n, n_len= 0, 0, 1
while i < K:
    n += 1
    if n / sunuke(n) <= ((n+1)/ sunuke(n+1)):
        if str(n)[-1] == "9":
                print(n)
                i += 1
                new_n = ""
                for x in range(n_len):
                    new_n = new_n + "0"
                n_len += 1
                new_n = "1" + new_n
                n = int(new_n)
        else:
            print(n)
            i += 1


