{-# LANGUAGE BangPatterns, MultiWayIf #-}

import Control.Applicative
import Control.Monad
import Data.List
import Debug.Trace (traceShow, traceShowM)

main :: IO ()
main = do
    [x, y] <- fmap read . words <$> getLine :: IO [Int]
    print $ x + y `div` 2