#include #include using namespace std; double t1,k1,t2,k2; int main(){ cin >> t1 >> k1 >> t2 >> k2; cout << ((t1/k1 + t2/k2)/2); return (0); }