#include "bits/stdc++.h" using namespace std; int main() { double A, B; cin >> A >> B; if (A > B) swap(A, B); printf("%.9f", sqrt(B * B - A * A)); }