arg = gets

if arg == nil then
  exit
end

a,b = arg.split(" ").map(&:to_i)

ans = 0

for i in (0..1) do
  if a > b then
    ans = ans + a
    a = a - 1
  else
    ans = ans + b
    b = b - 1
  end
end

puts ans
