import Data.List

main :: IO ()
main = readParams >>= print . solve . tail

readParams :: IO [Double]
readParams = map read . words <$> getContents

solve :: [Double] -> Double
solve = foldl1 average . sort

average :: Floating a => a -> a -> a
average x y = (x + y) / 2
