let () = Scanf.scanf "%d\n" @@ fun n ->
  let as_ = Array.init n @@ fun _ -> Scanf.scanf "%d " @@ fun a -> a in
  Printf.printf "%.9f\n" @@
  1. /. Array.fold_left (fun s a -> s +. 1. /. float_of_int a) 0. as_
