'use strict';
function main(input) {
  let sum = 0;
  const arr = input.trim().split('\n');
  const a = arr[1].split(' ').map(x => Number(x)).map(x => sum += 1 / x);
  
  console.log(1/ sum);
}

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