a, b = map(int, input().split()) c = a**2 d = b**2 if c == d: d *= -1 print((abs(c - d))**0.5)