import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val n = sc.nextInt
  val al = Vector.fill(n)(sc.nextInt)

  val res = 1d / al.map(1 / _.toDouble).sum


  println(res)


}
