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