k = int(input())
i = 1
n = 1
sum = 1
while n <= k:
    s = i + 1
    nextsum = 0
    while s >= 10:
        nextsum = nextsum + s % 10
        s = int(s/10)
    nextsum = nextsum + s
    #print(i/sum)
    #print(i+1/nextsum)
    if (i/sum) <= ((i+1)/nextsum):
        print(i)
        n = n + 1
    i = i + 1
    sum = nextsum
    #print(nextsum)

