import math r, d = map(float, input().split()) print( math.pow(d**2 - r**2, 0.5) )