#include #include int main() { double r, d, ans; scanf("%lf %lf", &r, &d); ans=sqrt(d*d-r*r); printf("%.8lf", ans); return 0; }