fun main(args: Array<String>) {
    val input_num = readLine()!!.toInt()
    val A = readLine()!!.split(" ").map(String::toDouble)
    val list = mutableListOf<Double>()
    for (a in A)
        list.add(1/a)
    
    println(1/list.sum())
}