#include <stdio.h>

int main() 
{
    float R1,R2,R;
    scanf("%f %f",&R1,&R2);
    R=R1*R2/(R1+R2);
    printf("%f",R);
    return 0;
}