print$_+1-2**(`dc -e'$_ 2op'`=~y/1//)for<>