#include<stdio.h>
#include<math.h>
int main()
{
double sum=1.0;
double temp=1.0;
double x=0.0;
double t=1.0;
scanf("%lf",&x);
double i=1.0;
while(fabs(t)>=0.00001)
{
t=pow(x,i)/temp;
temp*=i;
sum+=pow(x,i)/temp;
i++;
}
printf("%.4lf",sum);
}