read K;printf %d\\n {1{,0{{0..8}999999999999,99{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9}}}}}}}}}}}},{1..8}99{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9}}}}}}}}}}}},2{,{0..8}999{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9}}}}}}}}}}},3{,{0..8}9999{,9{,9{,9{,9{,9{,9{,9{,9{,9}}}}}}}}}},4{,{0..8}99999{,9{,9{,9{,9{,9{,9{,9{,9}}}}}}}}},5{,{0..8}999999{,9{,9{,9{,9{,9{,9{,9}}}}}}}},6{,{0..8}9999999{,9{,9{,9{,9{,9{,9}}}}}}},7{,{0..8}99999999{,9{,9{,9{,9{,9}}}}}},8{,{0..8}999999999{,9{,9{,9{,9}}}}},9{,{0..8}9999999999{,9{,9{,9}}}},{1..9}9{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9{,9}}}}}}}}}}}}}}|sort -n|head -$K