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