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