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