#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  double k;
  cin >> n;
  double sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> k;
    sum += 1 / k;
  }
  cout << 1 / sum << endl;
}
