s=[]
c=""
for i in range(14):
    for j in range(1,10):
        s.append(str(j)+c)
    c+="9"
t=[]
p=float("INF")
for i in s[::-1]:
    g=int(i)/sum(int(j)for j in i)
    if g<=p:
        t.append(i)
        p=g
t=t[::-1]
for i in range(int(input())):
    print(t[i])