#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { double D, R; cin >> R >> D; double answer = D * D - R * R; printf("%.10f\n", pow(answer,0.5)); }