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