#include using namespace std; int main(){ double r,d; cin >> r >> d; printf("%.10lf\n", sqrt(d*d-r*r)); }