#include<stdio.h>
#include<math.h>
void main()
{
int n,t=1;
scanf("%d",&n);
double sum,i=1,j=1;
do{
sum+=(i++/j)*t;
j=j+2;
t=-t;
}while(i<=n);
printf("%.3lf",sum);
}
#include<stdio.h>
#include<math.h>
void main()
{
int n,t=1;
scanf("%d",&n);
double sum,i=1,j=1;
do{
sum+=(i++/j)*t;
j=j+2;
t=-t;
}while(i<=n);
printf("%.3lf",sum);
}