#include using namespace std; using int64 = long long; int main() { double r, d; cin >> r >> d; cout << fixed << setprecision(10) << sqrt(d * d - r * r) << endl; }