a,b = map(int,input().split()) if a>b: a,b = b,a x = b**2-a**2 if x>0: print(x**0.5) else: print(a*2**0.5)