int n,i;float sum;scanf("%d",&n);sum = 1;for (i = 2; i <=n; i++)sum += ( (i%2 == 0)?-1:1)*i/(2*i-1);printf("%f\n", sum);