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