function Main(input){
  input = input.split("\n"); // 'A B'
  inputStr = input.split(" ");
  var a = parseInt(inputStr[0]);
  var b = parseInt(inputStr[1]);
  
  console.log(Math.max(a*2-1,b*2-1,a+b));
  
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
