let () =
  Scanf.scanf "%d\n" @@ fun n ->
  let arr = Array.init n @@ fun _ -> Scanf.scanf "%f " @@ fun f -> f in
  let deno = Array.fold_left (fun ans x -> ans +. (1. /. x)) 0. arr in
  Printf.printf "%.5f\n" (1. /. deno)