#include using namespace std; typedef long long ll; int main() { double r, d; cin>>r>>d; cout << fixed << sqrt(d*d-r*r) << endl; return 0; }