a, b = map(int, input().split()) if a < b : a, b = b, a c = (a * a - b * b)**0.5 print(c)