import Control.Applicative
import Control.Monad

solver :: [Int] -> Int
solver xs = truncate $ fromIntegral (sum xs) / fromIntegral (length xs)

main :: IO()
main = do
  n <- (read :: String -> Int) <$> getLine
  inputs <- map (read :: String -> Int) <$> replicateM n getLine
  print $ solver inputs