a, b = sorted(map(int, input().split())) print("{:.12f}".format((b * b - a * a) ** 0.5))