If Remaining and Value are integers, you can use ~b(or ~p) to print them, instead of converting them to binaries and using ~s