a = gets

a, b = a.split(" ")

a = a.to_i
b = b.to_i

if a < b
  answer = b
  b = (b - 1)
elsif(a > b)
  answer = a
  a -= 1
else
  answer = a
  a -= 1
end

if a < b
  answer += b
  b = b - 1
elsif(a > b)
  answer += a
  a = a - 1
else
  answer += a
  a = a-1
end


puts answer