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