#include<iostream> using namespace std; int main(){ float x,a,y,b,e; cin>>x>>a>>y>>b; e=(y*b-x*a)/(b-a); cout<<e; return 0; }