while 1:a,b=map(float,raw_input().split());print"%.2f"%(a*b/(a+b))