#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); long double r, d; cin >> r >> d; cout << fixed << setprecision(10) << sqrt(d * d - r * r) << '\n'; return 0; }