import decimal a, b = sorted(map(decimal.Decimal, input().split())) print("{:.12f}".format((b * b - a * a) ** decimal.Decimal(0.5)))