a, b = gets.strip.split.map(&:to_i)
if a > b
  first_max = a
  a -= 1
  if a > b
    second_max = a
  else
    second_max = b
  end
else
  first_max = b
  b -= 1
  if a > b
    second_max = a
  else
    second_max = b
  end
end

puts first_max + second_max