K=int(input())
for k in range(1,K+1):
  if k/9<=1:
    print(k)
  else:
    print(int("".join(list(map(str,[(k%9),]+[9,]*int((k/9))
                              )
                          )
                     )
             )
         )