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