function main(input) {
  var A = Number(input.split(" ")[0]);
  var B = Number(input.split(" ")[1]);
  var big = A > B ? A : B;
  var small = A > B ? B : A;
  var int1 = big;
  var int2 = big-1 > small ? big-1 : small;
  console.log(Number(int1)+Number(int2));
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
