#include <iostream>
#include <cmath>
using namespace std;
int main (void){
double b=0,c=0;
double j=1.0,a;
int p=1,n=1;
cin>>a;
do
{
n+=2;
j=j*(n-1)*(n);
c=pow(a,n)/j;
b+=p*c;
p*=-1;
}while(fabs(b)>=0.000001);
cout<<b<<endl;
return 0;
}
asd8532