#include using namespace std; int main() { double r, d; cin >> r >> d; cout << fixed << setprecision(6) << sqrt(d * d - r * r) << "\n"; }