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

    val sowa = mutableListOf<Double>()
    for (element in num) {
        sowa.add(1 / element)
    }
    print(1 / sowa.sum())
}