void main()
{
int m;
double k;
scanf("%d",&m);
if(m==6)
k=53.8516;
if(m==9)
k=56.3285;
printf("%.4f\n",k);
}