main :: IO()
main = do
    [a,b] <- map read . words <$> getLine
    putStrLn $ show $ ans [a,b]

ans :: [Int] -> Int
ans [a,b]
    | a + 1 < b				= 2 * b - 1
    | b + 1 < a				= 2 * a - 1
    | otherwise				= a + b
ans ls = 0