open System

let N =stdin.ReadLine()|>int
let A =stdin.ReadLine().Split()|>Array.map double
[<EntryPoint>]
let main argv =
    A
    |>Seq.sumBy(fun c -> (1.0/c))
    |>fun c -> (1.0/c)
    |>printfn "%f"
    0