button1, button2 = gets.split.map(&:to_i)
count = 0

if button1 > button2 then
  count += button1
  button1 -= 1
else
  count += button2
  button2 -= 1
end

if button1 > button2 then
  count += button1
  button1 -= 1
else
  count += button2
  button2 -= 1
end

print count