import Data.Ratio

main = do
  getLine
  li <- getLine
  let as = map read $ words li
  let ans = compute as
  print ans

compute :: [Integer] -> Double
compute as = fromRational $ (1 /) $ sum $ map (1 %) as