#include <bits/stdc++.h>
using namespace std;
const long long MOD=1e9+7;
int main(){
  double r,d;
  cin>>r>>d;
  cout << setprecision(20) << sqrt(d*d-r*r) << endl;
  return 0;
}