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