function Main(input){
  
  var str = input.trim().split(" ");
  var a = str[0];
  var b = str[1];
  
  var kekka = 0;
  
  if(a-b>0){
    kekka = a*2 -1;
    
  }else if(b-a>0){
     kekka = b*2 -1;
  }else if(a-b==0){
    kekka = a*2;
  }
 
   
   console.log(kekka);
}//function end
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));