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