#include<bits/stdc++.h> using namespace std; int main() { int x,a,y,b; cin>>x>>a>>y>>b; cout<<setprecision(2)<<(y*b-x*a)/(b-a); return 0; }