def main(): a,b=map(int,input().split()) if a==b: print((a**2+b**2)**0.5) else: print((max(a,b)**2-min(a,b)**2)**0.5) main()