#include<iostream>

using namespace std;
int main()
{
    int a,n,i;
    double b,c;
    cin >> n;
    for(i=0;i<n;i++){
        cin >> a;
        c=a;
        b +=1/c;
    }
    cout << 1/b;
 return 0;
}
