fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val inputs = readLine()!!.split(" ").map { it.toInt() }

    var denom = 0.0

    for ( v in inputs) {
        denom += 1.0 / v
    }

    println(1.0 / denom)

}