#include int main(void) { double xa,ya,xb,yb; scanf("%lf%lf%lf%lf",&xa,&ya,&xb,&yb); printf("%.20lf\n",ya+(yb-ya)*xa/(xb+xa)); return 0; }