import Data.List
import Data.Char

main::IO ()
main = do
    [a,b] <- map read . words <$> getLine
    let ans = if (max a b) == a 
        then (max (a-1) b) + (max a b) 
        else (max a (b-1)) + (max a b)
    print ans