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 numer = al.product

  val denom = al.map(numer / _).sum


  val res = numer.toDouble / denom

  println(res)


}