fun main(arg:Array<String>){
  var (a,b) = readLine()!!.split(" ").map(String::toInt)
  var num = 0
  for(i in 0..1){
    if(a > b){
      num += a
      a--
    }else{
      num += b
      b--
    }
  }
  println(num)
}