#include using namespace std; int main() { double a, b; cin >> a >> b; cout << setprecision(9) << sqrt(b * b - a * a) << "\n"; return 0; }