#include <bits/stdc++.h>
int main() {
  int n;
  double x;
  double ans;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%lf", &x);
    ans += (1 / x);
  }
  printf("%f\n", (1 / ans));
}
