#include<iostream> using namespace std; int main() { double r1,r2; cin>>r1>>r2; cout<<1/(1/r1+1/r2); return 0; }