read n k echo $[n/=2-n%2,++k