function Main(input) {
  var input = input.split(" ").map(val => parseInt(val, 10));
  var a = input[0];
  var b = input[1];

  var result = 0;

  for(var i=0;i< 2;i++){
    if( a > b) {
      result = result + a;
      a = a - 1;
    } else {
      result = result + b;
      b = b - 1;
    }
  }
console.log(result);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));