#include<stdio.h>
#include <math.h>
/*
int main() {
int n = 0;
double sum1, sum = 0.0;
scanf("%d", &n);
for(int i = 1; i <= n ; i++)
{
sum1 += pow(-1, i-1) * (2 * i - 1);
sum += 1.0 / sum1;
}
printf("%.3lf", sum);
return 0;
*/
//当时没解出来的法2是因为int j=0要放在for循环的外面
int main()
{
int n;
int k = -1;
int j = 0;
double sum = 0.0;
scanf("%d", &n);
for (int i = 1; i <= 2 * n - 1; i = i + 2)
{
k = -k;
j = j + i * k;
sum += 1.0 / j;
}
printf("%.3lf", sum);
}