#include #include using namespace std; int main(int ac, char **av) { double r = 0, d = 0; scanf("%lf %lf", &r, &d); printf("%.06f\n", sqrt(d*d - r*r)); }