package main import "fmt" func min(a, b int) int { if a < b { return a } return b } func main() { var A, B int fmt.Scan(&A, &B) if A == B { fmt.Println(A + B - 1) } else { fmt.Println(min(A, B) * 2) } }