arr = $stdin.gets.chomp.split(" ")
arr.map! do |a_j|
 a_j.to_i
end

if arr[0] >= arr[1]
  a = arr[0]
  arr[0] -= 1
else
  a = arr[1]
  arr[1] -= 1
end


if arr[0] >= arr[1]
  b = arr[0]
else
  b = arr[1]
end

x = a + b

puts x