using namespace std;
int main() {
int x, y, a, b; double z; cin >> x >> a >> y >> b; z = (y * b - x * a) / (b - a); cout << fixed << setprecision(2); cout << z << endl; return 0;
}