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