from decimal import Decimal a,b=map(float,input().split()) print((b**2-a**2)**0.5)