#include <iostream>
#include <iomanip>
int main() {
int x, a, y, b;
std::cin >> x >> a >> y >> b;
// 计算每年新生资源量 r
double r = (y * b - x * a) / double(b - a);
// 输出结果,保留两位小数
std::cout << std::fixed << std::setprecision(2) << r << std::endl;
return 0;
}