#include using namespace std; signed main(){ long double a, b; cin >> a >> b; if( not ( a > b ) ) swap( a, b ); cout << fixed << setprecision( 13 ) << sqrt( a * a - b * b ) << endl; return 0; }