#include <iostream>
#include <vector>
#include <string>
#include <cmath>
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    double k;
    cin >> k;
    if(k == 0){
        double p = M_PI;
        double ans = p * p / 6;
        printf("%.10lf\n", ans);
        return 0;
    }
    double ans = 0;
    for(int i = 1; i <= k; i++){
        ans += 1 / (double)i;
    }
    printf("%.10lf\n", ans / k);
}