function main(input) {
  const A = input.split(" ").map(i => parseInt(i))[0];
  const B = input.split(" ").map(i => parseInt(i))[1];
  var max = 0;
  if (max < A + A - 1) {
    max = A + A - 1;
  }
  if (max < A + B) {
    max = A + B;
  }
  if (max < B + B - 1) {
    max = B + B - 1;
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));