#include<iostream>
#include<iomanip>
using namespace std;
int main(){
    int n;
    cin >> n;
    double sum=0;
    double temp;
    for(int i=1;i<=n;i++){
        temp=1.0/i;
        sum+=temp;
    }
    cout << fixed << setprecision(5) << sum << endl;
    return 0;
}