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