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

type Answer = Int
answer :: Answer -> IO ()
answer = print

solve :: Int -> Int -> Answer
solve a b = a + b `div` 2