import math a,b=(float (i) for i in input (). split ()) if a>b: m=a ot=b else: m=b ot=a m*=m ot*=ot m-=ot m=math.sqrt(m) print (m)