r1,r2=map(int,input().split(' '))    # 输入,按空格分开,以int类型赋值给r1,r2
value=1/((1/r1)+(1/r2))        # 并联电阻计算公式
print(value)