#include <bits/stdc++.h>
using namespace std;
int main() {
  double l, h, a, x;
  cin >> h >> l;
  x = ((l * l) - (h * h)) / (2 * h);
  cout << fixed;
  cout << setprecision(13);
  cout << x << "\n";
}
