function Main(input) {
	var list = input.split("\n")[1].split(" ");
   var output = 0;
  for(var i = 0; i < list.length; i++){
    output += 1 / parseInt(list[i]);
  }
  console.log(1 / output);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
