function main(input) {
const args = input.split(' ');
var a = parseInt(args[0] , 10);
var b = parseInt(args[1] , 10);
    console.log(Math.max(2a-1,a+b,2b-1));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
