#include #include using namespace std; int main(){ int n;cin>>n; double ans = 0; for(int i = 1; n >= i; i++){ ans += (double)1/(double)i; } cout << fixed << setprecision(10) << (double)ans/(double)n << endl; }