#define _USE_MATH_DEFINES #include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //tuple #include //deque #include //INT_MAX #include //bitset #include //sqrt, ceil. M_PI, pow, sin #include //fixed #include //setprecision #include //stringstream #include //gcd, assumlate #include //randam_device #include //numeric_limits #include using namespace std; constexpr long long int D_MOD = 1000000007; int main() { int A, B, X, Y; cin >> A >> B >> X >> Y; int64_t temp1 = X * (A + B); int64_t temp2 = Y * (A + B); double a = temp1 / (double)A; double b = temp2 / (double)B; if (a < b) { cout << fixed << setprecision(12) << a << endl; } else { cout << fixed << setprecision(12) << b << endl; } return 0; }