#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pint; typedef vector vint; typedef vector vpint; #define mp make_pair #define fi first #define se second #define all(v) (v).begin(),(v).end() #define rep(i,n) for(int i=0;i<(n);i++) #define reps(i,f,n) for(int i=(f);i<(n);i++) int main(void){ double a, b; cin >> a >> b; if(a < b) swap(a, b); double ans = 1e9; double tmp = sqrt(a * a + b * b); ans = min(ans, tmp); tmp = sqrt(a * a - b * b); ans = min(ans, tmp); printf("%.9f\n", ans); return 0; }