object Main extends App {
  var get = readLine.split(" ")
    var a = get(0).toInt
    var b = get(1).toInt
  var sum =0
if(a>=b) {
 sum =  a
  a = a - 1
 } else {
sum =  b
    b= b-1
  }
  if(a>=b) {
  sum = 
 sum +  a
  }
  else {
  sum = 
 sum +  b
  }
    println(sum)
}