a,b = map(int,input().split()) if a == b: print(a*2**(1/2)) exit() print((max(a,b)**2-min(a,b)**2)**(1/2))