#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long a, b;
  cin >> a >> b;
  double d = ((pow(b, 2)) - (pow(a, 2))) / (2 * a);
  cout << fixed << setprecision(12) << abs(d);
  return 0;
}
