#include
int main()
{ double s=0,eps,t=1;
int n,k;
scanf("%lf%d",&eps,&k);
for(n=1; n<=k&&t>=eps; n++)
{ t=1.0/(n*(n+1));
s+=t;
}
printf("%.2f\n",s);
return 0;
}
#include
int main()
{ double s=0,eps,t=1;
int n,k;
scanf("%lf%d",&eps,&k);
for(n=1; n<=k&&t>=eps; n++)
{ t=1.0/(n*(n+1));
s+=t;
}
printf("%.2f\n",s);
return 0;
}