main :: IO()
main = do
    [a, b] <- map read . words <$> getLine
    print $ push a b
    where push a b
              | a - b > 0 = 2 * a - 1
              | a == b    = a + b
              | otherwise = 2 * b - 1
