read a b ((a==b)) && echo $((a+b-1)) || echo $((2*(a