func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

let n:Int=Int(readLine()!)!
let num=readInts()
var sum:Double=0

for i in 0..<n{sum+=1.0/Double(num[i])}

print(1/sum)