"use strict"
function main(input){
  
 const args = input.split(' ');
 const a = parseInt(args[0], 10);
 const b = parseInt(args[0], 10);

if (a>b){
	let c = a*2-1
	console.log(c);
}else if(a<b){
	let c = b*2-1
	console.log(c);
}else{
	let c = a+b
	console.log(c);
}
  
}

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