#include using namespace std; using ll = long long; int main(){ long double r,d; cin >> r >> d; long double k = sqrtl(d * d - r * r); cout << setprecision(20) << k << endl; }