import math r, d = map(float, input().split()) print("{:.8f}".format(math.sqrt(d ** 2 - r ** 2)))