#include #include #include #include #include #include #include #include #include #include #include #include #include #define p(s) cout<<(s)<=n;i--) #define CK(n,a,b) ((a)<=(n)&&(n)<(b)) #define F first #define S second typedef long long ll; using namespace std; double xa, xb, ya, yb; int main(){ cin>>xa>>ya>>xb>>yb; double ans = yb - (yb-ya)*xb/(xb+xa); printf("%.7lf", ans); return 0; }