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