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