#include<stdio.h>
int main()
{
double r1 = 0,r2 = 0;
scanf("%lf %lf",&r1,&r2);
double ret = 1.0/(1.0/r1 + 1.0/r2);
printf("%lf",ret);
return 0;
}
#include<stdio.h>
int main()
{
double r1 = 0,r2 = 0;
scanf("%lf %lf",&r1,&r2);
double ret = 1.0/(1.0/r1 + 1.0/r2);
printf("%lf",ret);
return 0;
}