#include<cstdio>
#include<cmath>
#include <iostream>
double p[21];
int main()
{
double a[21],b[21];
int n;
a[2]=2;
b[2]=1;
b[1]=0;
for(int i=3;i<=20;i++)
{
a[i]=a[i-1]*i;
b[i]=(i-1)*(b[i-1]+b[i-2]);
}
while(scanf("%d",&n)!=-1)
printf("%.2lf%%\n",b[n]/a[n]*100.0);
return 0;
}
#include<cmath>
#include <iostream>
double p[21];
int main()
{
double a[21],b[21];
int n;
a[2]=2;
b[2]=1;
b[1]=0;
for(int i=3;i<=20;i++)
{
a[i]=a[i-1]*i;
b[i]=(i-1)*(b[i-1]+b[i-2]);
}
while(scanf("%d",&n)!=-1)
printf("%.2lf%%\n",b[n]/a[n]*100.0);
return 0;
}