def S(n):
    n = str(n)
    sn = 0
    for i in range(len(n)):
        sn += int(n[i])
    return sn

K = int(input())
max_value = 0
count = 0
for i in range(1, 10**15+2):
    sn = S(i)
    if max_value < sn:
        print(i)
        max_value = sn
        count += 1
    if count == K:
        break

