k = int(input())

i = 1
j = 0

while True:
    if j == k:
        break

    if (i / sum(list(map(int, str(i))))) <= ((i + 1) / sum(list(map(int, str(i + 1))))):
        print(i)
        j += 1

    i += 1