#include #include #include #include #include #include #include #include #include #include //pair is also included in this library #include #include #include #include #include #include #define REP(i, s, n) for(int i = (int)(s); i < (int)(n); i++) #define fst first #define snd second #define MP make_pair //incase c++11 or later is not available using namespace std; typedef long long int ll; typedef vector VI; typedef vector VL; typedef pair PII; typedef pair PLL; //prefer define statement //for reason that const int ver. of INF will raise a silly warning (unused variable) #define INF (INT_MAX/3) #define LIM_INF (INT_MAX) //const int INF = INT_MAX/3; /*------------------------------------------------------------------------------*/ int main(){ double v1, v2, d, w; scanf("%lf %lf\n%lf\n%lf", &v1, &v2, &d, &w); printf("%.6f\n", ((double)d / (v1 + v2)) * (double)w); return 0; }