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