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)])


for x in sorted([(sunuke(i), i) for i in range(1, pow(10, keta) + 1)])[:k]:
    print(x[1])