object Main extends App {
  val input1 = readInt
  val input2 = readLine.split(" ").take(input1).map(_.toInt)

  var result: Double = 0

  for(x <- 0 until input1)
    result += 1.0/input2(x).toDouble
 
  println(1.0/result)

}
