function main(input){
  const A = parseInt(input.split(" ")[0],10);
  const B = parseInt(input.split(" ")[1],10);
  if(A>B){
    console.log(2*A-1);
  }else if(A<B){
    console.log(2*B-1);
  }else{
    console.log(2*A);
  }
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));