#include #include using namespace std; int main(){ int xa, xb, ya, yb; cin >> xa >> ya >> xb >> yb; cout << fixed << ya + (yb - ya) / double(xa + xb) * xa << endl; }