package main import ( "fmt" "math" ) func main() { var a,b int fmt.Scanf("%d %d",&a,&b) var ans=a+b if(math.Abs(float64(a-b))-1>=0){ ans+=int(math.Abs(float64(a-b)))-1 } fmt.Printf("%d\n",ans) }