const main = (input) => {
  var a = input[0]-0;
  var ans = 0;
  var b = input[1].split(" ").forEach(v=>{
    ans += 1/v;
  });
  console.log(1/ans);
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));
