import math
k = int(input())
def num(x):
    nu = 0
    for i in range(len(x)):
        nu += int(x[i])
    return(int(x) / nu)
if k <= 9:
    for i in range(1,k+1):
          #print(i,num(str(i)))
        print(i)
    exit()
cou = int(math.ceil(k/9))
co = k % 9
for i in range(cou):
    if i != cou-1:
        for m in range(1,10):
            print(str(m) + "9" * (i))
              #print(str(m)+"9"*(i),num(str(m)+"9"*(i)))
    else:
        for m in range(1,co+1):
            print(str(m) + "9" * (i))
              #print(str(m)+"9"*(i),num(str(m)+"9"*(i)))