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