#include<stdio.h>
#include<math.h>
int main()
{
double x,n=1,p,sum;
scanf("%lf",&x);
p=x;
sum=1;
while(fabs(p)>=1e-8)
{
sum=sum+p;
n++;
p=p*(x/n);
}
printf("%.4lf\n",sum);
return 0;
}
#include<stdio.h>
#include<math.h>
int main()
{
double x,n=1,p,sum;
scanf("%lf",&x);
p=x;
sum=1;
while(fabs(p)>=1e-8)
{
sum=sum+p;
n++;
p=p*(x/n);
}
printf("%.4lf\n",sum);
return 0;
}