K = int(input())

L = 10**3
P = []
Q = []
for n in range(1, L+1):
    if n%9 == 0:
        P.append(int("9"*(n//9)))
        Q.append(9*(n//9))
    else:
        P.append(int(str(n%9)+"9"*(n//9)))
        Q.append(n%9 + 9*(n//9))

c = 0
for i, (p, q) in enumerate(zip(P, Q)):
    ok = True
    for j in range(i+1, L):
        np, nq = P[j], Q[j]
        if np*q < nq*p:
            ok = False
            break
    if ok:
        print(p)
        c += 1
    if c == K:
        break


"""
import matplotlib.pyplot as plt

A = []
B = []
for n in range(1, 10**5):
    m = sum([int(s) for s in str(n)])
    A.append(n)
    B.append(n/m)


plt.plot(A, B)
plt.show()
"""