#include <iostream>
#include <vector>
using namespace std;
int main() {
vector <long double> x;
int n;
long double ans=0;
cin >> n;
x.resize(n);
for(int i=0; i<n; i++)
{
cin >> x[i];
}
for(int i=0; i<n; i++)
{
ans+=x[i]+1.0/x[i];
}
cout.precision(15);
cout << fixed << ans;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl2ZWN0b3IgPGxvbmcgZG91YmxlPiB4OwoJaW50IG47Cglsb25nIGRvdWJsZSBhbnM9MDsKCWNpbiA+PiBuOwoJeC5yZXNpemUobik7Cglmb3IoaW50IGk9MDsgaTxuOyBpKyspIAoJewoJCWNpbiA+PiB4W2ldOwoJfQoJZm9yKGludCBpPTA7IGk8bjsgaSsrKQoJewoJCWFucys9eFtpXSsxLjAveFtpXTsKCX0KCWNvdXQucHJlY2lzaW9uKDE1KTsKCWNvdXQgPDwgZml4ZWQgPDwgYW5zOwoJcmV0dXJuIDA7Cn0=