#include <bits/stdc++.h>
using namespace std;
int main() {
  int h, l;
  cin >> h >> l;
  cout << fixed << setprecision(13)
       << (double)((long long)(l + h) * (l - h)) / (2 * h) << endl;
  return 0;
}
