#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,opp,i;
float sum;
scanf("%d", &n);
opp = 1;
sum = 1;
for (i = 2; i <= n; i++)
{
opp = -opp;
sum = sum + opp * 1.0 / i;
}
printf("%.2f", sum);
return 0;
}