#include <bits/stdc++.h>
using namespace std;

float t1, t2, k1, k2;


int main()
{
    cin >> t1 >> t2 >> k1 >> k2;
    cout <<  float(t1)/float(k1) + float(t2)/float(k2);
    return 0;
}