read r c
echo $[r*c-1>>1+(r==c)]