#include<iostream> #include<cmath> using namespace std; int main() { double x,a,y,b,z; cin>>x>>a>>y>>b; printf("%.2f",(y*b-x*a)/(b-a)); return 0; }