#include <bits/stdc++.h>
using namespace std;
int main() {
  double h, l;
  cin >> h >> l;
  double val = (l * l) - (h * h);
  double val2 = 2.0 * h;
  double x = val / val2;
  cout << fixed << setprecision(12) << x << endl;
}
