r1,r2 = map(float,input().split())
num = 1/((1/r1)+(1/r2))
print(num)