#include int main() { double xa, ya, xb, yb; std::cin >> xa >> ya >> xb >> yb; double yp = (yb * xa+ ya * xb)/(xa + xb); std::cout << yp << std::endl; }