#include<iostream>
using namespace std;
int main(){
    int r1,r2;
    cin>>r1>>r2;
    double res= 1.0/(1.0/r1 + 1.0/r2);
    printf("%.1lf",res);
    return 0;
}