fun main(args: Array<String>) {
    val N = readInputLine().toInt()
    val As = readInputLine().split(" ").map { 1.0 / it.toDouble() }
    
    println(1.0 / As.sum())
}

fun readInputLine(): String {
    return readLine()!!
}
