function Main(input) {
	input = input.trim();
  var A = parseInt(input.split(" ")[0]);
  var B = parseInt(input.split(" ")[1]);
  if(A > B + 1){
     console.log(A + (A - 1));
  }else if(B > A + 1){
     console.log(B + (B - 1));
  }else{
     console.log(Math.max(A,B) + Math.min(A,B));
  }
  
}

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