#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; int main(){ double a, b; cin >> a >> b; double ret = 1000000000.0; ret = min(ret, sqrt(a*a + b*b)); if(a*a-b*b>0) ret = min(ret, sqrt(a*a - b*b)); if(b*b-a*a>0) ret = min(ret, sqrt(b*b - a*a)); printf("%.10lf\n", ret); return 0; }