R, D = map(int, input().split()) print((D ** 2 - R ** 2) ** 0.5)