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