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