import math a, b = sorted(map(int, input().split())) print(math.sqrt(b**2-a**2))