import math r, d = [int(x) for x in input().split(' ')] def cal(radius, distance): print(math.sqrt(distance ** 2 - radius ** 2)) cal(r, d)