k = int(input())

def sunuke(n):
    nlist = list(str(n))
    sn = 0
    for i in nlist:
        sn += int(i)
    return n/sn

start = 1
counter = 0

while counter < k:
    if sunuke(start) <= sunuke(start + 1) and sunuke(start) <= 10 ** 15:
        print(start)
        counter += 1

    start += 1