const main = (input) => {
  var inputs = input.trim().split(" ");
  var A = inputs[0]-0;
  var B = inputs[1]-0;
  var ans = 0;
  for(var i=0;i<2;i++){
    if(A>=B){
      ans += A;
      A--;
    }else{
      ans += B;
      B--;
    }
  }
  console.log(ans);
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));
