function Main(input) {
  input = input.split("\n");
  var A = parseInt(input[0].split(" ")[0]);
  var B = parseInt(input[0].split(" ")[1]);
  var sum=0;
  if(A > B){
    sum=sum+A;
    A=A-1;
  }else{
    sum=sum+B;
    B=B-1;
  }
  if(A > B){
    sum=sum+A;
    A=A-1;
  }else{
    sum=sum+B;
    B=B-1;
  }
  console.log(sum);
}

var input=Main(require("fs").readFileSync("/dev/stdin", "utf8"));
// var input=`3 4`
// Main(input);