#include #include int main(){ double ax, ay, bx, by; std::cin >> ax >> ay; std::cin >> bx >> by; std::cout << std::setprecision(10) << by - (by - ay) / (bx + ax) * bx << std::endl; return 0; }