#include<iostream.h>
void main(){int n,i;float s;cout<<"n=";cin>>n;s=0;i=1;while(i<=n){s+=(float)1/(i*(2*i+1));i++;}cout<<"s="<<s<<endl;
}