function Main(input){
  abcde = input.split(' ');
  a = parseInt(abcde[0].trim());
  b = parseInt(abcde[1].trim());

  if(a - 1 >= b){
    console.log(a + a - 1)
  }
  else{
    console.log(b + b - 1)
  }
   
  }
  Main(require("fs").readFileSync("/dev/stdin","utf-8"));