#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, h;
  cin >> a >> b;
  h = (b * b - a * a) / (2 * a);
  h = h + (1 / 1000000);
  cout << fixed << setprecision(13) << h << endl;
}
