import math r,d = map(float,input().split()) print(round(math.sqrt(d**2-r**2),12))