#include <stdio.h>

int main() {
    int r1,r2;
    scanf("%d %d",&r1,&r2);
    printf("%f",(float)1/((float)1/r1+(float)1/r2));
    return 0;
}