#include #define p(s) cout<<(s)<>xa>>ya>>xb>>yb; double ans=(yb-(double)(yb-ya)/(xa+xb)*xb); printf("%.7lf",ans); return 0; }