k = int(input())

keta = 1

while k // pow(10, keta) > 0:
    keta += 1


def sunuke(i):
    return i / sum([int(c) for c in str(i)])

prev = None

for x in sorted([(sunuke(i), i) for i in range(1, pow(10, keta + 3))])[:k]:
    if prev == x[0]:
        pass
    else:
        print(x[1])
        prev = x[0]
