#include <bits/stdc++.h>
using namespace std;
int main() {
  float h, l;
  cin >> h >> l;
  cout << showpoint;
  cout << fixed;
  cout << setprecision(12);
  cout << (l * l - h * h) / ((float)2 * h);
}
