#include <bits/stdc++.h>
using namespace std;
const int N = 400010;
const int mod = 1000000007;
int a[N];
int main() {
  double h, l;
  cin >> h >> l;
  printf("%.8lf\n", (l * l - h * h) / (2 * h));
}
