computeMax :: Integral a => a -> a -> a
computeMax a b
    | x == y = 2 * y
    | otherwise = 2 * y - 1
    where
        x = min a b
        y = max a b


main :: IO ()
main = do
    [a, b] <- fmap read . words <$> getLine :: IO [Int]
    print $ computeMax a b
