#include <bits/stdc++.h> using namespace std; using ld = long double; int main() { ld r, d; cin >> r >> d; cout << fixed << setprecision(10) << sqrtl(d * d - r * r) << endl; return 0; }