#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int h, l, i;
  cin >> h >> l;
  long double x;
  x = (long double)(l * l - h * h) / (long double)(2 * h);
  std::cout << std::setprecision(9) << x << "\n";
}
