r,d = map(lambda x:float(x),input().split()) print((d**2-r**2)**(1/2))