function Main(input){
  AB = input.split(' ').map(n=>parseInt(n));
  A = AB[0];
  B = AB[1];
  S = A > B ? A-- : B--;
  S += A > B ? A : B;
  console.log(S);
}

Main(require("fs").readFileSync("/dev/stdin","utf-8"));
