#include<iostream> #include<iomanip> using namespace std; int main() { int x,a,y,b; cin>>x>>a>>y>>b; double xin=((double)y*b-(double)x*a)/(b-a); cout<<fixed<<setprecision(2)<<xin; }