function Picker(input) {
  var lines = input.split('\n');
  var fields = lines.reduce(function(all, line) { return all.concat(line.split(' ')); }, []);
  var p = 0;

  return {
    int: function() {
      return parseInt(fields[p++], 10);
    },
    float: function() {
      return parseFloat(fields[p++]);
    },
    str: function() {
      return fields[p++];
    }
  };
}

function Main(input) {
  var pick = Picker(input);
  var a = pick.int();
  var b = pick.int();

  if (a === b) {
    console.log(a + b);
  } else {
    console.log(a > b ? 2 * a - 1 : 2 * b - 1);
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));