#include <bits/stdc++.h>
using namespace std;
int main() {
int n, tmp;
double ans, num ;
cin >> n;
ans = 0.0;
for (int i = 1; i <= n; i++) {
double ii = 1.0 * i;
cin >> tmp;
num = 1.0 / ii;
ans = (ans + num);
}
cout << fixed << setprecision(6) << ans << "\n";
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkgeyAKICAgIGludCBuLCB0bXA7CiAgICBkb3VibGUgYW5zLCBudW0gOwogICAgY2luID4+IG47CiAgICBhbnMgPSAwLjA7CiAgICAKICAgIGZvciAoaW50IGkgPSAxOyBpIDw9IG47IGkrKykgewogICAgICAgIGRvdWJsZSBpaSA9IDEuMCAqIGk7CiAgICAgICAgY2luID4+IHRtcDsKICAgICAgICBudW0gPSAxLjAgLyBpaTsKICAgICAgICBhbnMgPSAoYW5zICsgbnVtKTsKICAgIH0KICAgIAogICAgY291dCA8PCBmaXhlZCA8PCBzZXRwcmVjaXNpb24oNikgPDwgYW5zIDw8ICJcbiI7CglyZXR1cm4gMDsKfQo=