import java.util.*

fun main(args: Array<String>) {
  val n = readLine()!!.toInt()
  val list = readLine()!!.split(" ").map { it.toDouble() }
  val denominator = list.map {e -> 1 / e }.sum()
  println(1 / denominator)
}
