#include #include using namespace std; int main(void){ double r, d; cin >> r >> d; double L2 = d * d - r * r; cout << sqrt(L2); return 0; }