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