#include<stdio.h> #include<math.h> int main(){ double r,d; scanf("%lf%lf",&r,&d); printf("%.12lf\n",sqrt(pow(d,2)-pow(r,2))); return 0; }