from decimal import Decimal r,d=map(Decimal,input().split()) print((d**2-r**2)**(Decimal("0.5")))