#include #include typedef long long ll; int main(void) { std::cin.tie(0); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(8); int a, b, x, y; std::cin >> a >> b >> x >> y; std::cout << std::min(x * 1.0 / a * (a+b), y * 1.0 / b * (a+b)) << std::endl; return 0; }