#include
void main()
{
double x[6] = {0.0,0.1,0.195,0.3,0.401,0.5};
double f[6] = {0.39894,0.39695,0.39142,0.38138,0.36812,0.35206};
double input;
double output;
scanf("%lf",&input);
int i;
for (i = 0; i < 5; i++)
{
if (x[i] = input)
{
output = (f[i] * x[i] + f[i + 1] * x[i + 1]) / (x[i] + x[i + 1]);
break;
}
}
printf("%lfn",output);
}