#include using namespace std; int main(){ double r,d; cin >> r >> d; double ans = sqrt(d*d - r*r); cout << fixed << setprecision(8) << ans << endl; return 0; }