import Data.Ratio
main = do
  getLine
  n <- map (read::String->Int) . words <$> getLine
  let x = (fromIntegral .numerator . sum . map (1%)) n
  let y = (fromIntegral .denominator . sum . map (1%)) n
  print $ y / x