a,b=map(int,input().split()) print((2*a*b)**.5 if a==b else abs(a*a-b*b)**.5)