#include <bits/stdc++.h>
using namespace std;
double ssq(double x) { return x * x; }
int main() {
  double H, L;
  cin >> H >> L;
  double ans = ((ssq(L) + ssq(H)) / (2 * H)) - H;
  printf("%.10lf", ans);
  return 0;
}
