import Control.Monad

main :: IO ()
main = do
    [a, b] <- getInts
    print $ if a - b == 0 then a + b else 2 * (max a b) - 1

getLines :: Int -> IO [String]
getLines n = replicateM n getLine

getLinesInt :: Int -> IO [Int]
getLinesInt n = fmap read <$> getLines n

getInts :: IO [Int]
getInts = map (read :: String -> Int) . words <$> getLine