read while read n do echo $[(--n%9+1)*10**17{-n++/9,}] done