k = input()
K = int(k)
j = 1
count = 0
while True:
    a = 0
    j = str(j)
    for i in range(len(j)):
        a += int(j[i:i+1])
    j = int(j)
    if j/a < 2:
        print(j)
        count += 1
    if count == K:
        break
    j += 1