r,d = map(float,input().split()) ans = (d*d - r*r)**0.5 print(ans)