import math r, d = [float(_) for _ in input().split()] x = math.sqrt(d**2 - r**2) print(x)