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