function Main(input){
var A = input.split(" ")[0];
var B = input.split(" ")[1];
A = parseInt(A,10);
B = parseInt(B,10);
var coin = 0;
for(i=0;i<=1;i++){
  if(A>=B){
    coin += A;
    A -= 1;
  }else{
    coin += B;
    B -= 1;
  }
}
console.log(coin);
}
  Main(require('fs').readFileSync('/dev/stdin','utf8'));