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