'use strict'

const main = input => {
	const args = input.trim().split(' ').map(Number)
	let sum = 0

	if (args[0] > args[1]) {
		sum += args[0]
		args[0]--
	} else {
		sum += args[1]
		args[1]--
	}

	if (args[0] > args[1]) {
		sum += args[0]
	} else {
		sum += args[1]
	}

	console.log(sum)
}

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