a, b = gets.chomp.split.map(&:to_i)
result = 0

if a > b
	result = a
	if a-1 > b
		result += a-1
	else
		result += b
	end
else
	result = b
	if a > b-1
		result += a
	else
		result += b-1
	end
end

puts result
