#include <iostream>
#include <iomanip>
using namespace std;
int main(){
  int a,b;cin>>a>>b;
  int q,p,r;cin>>p>>q>>r;
  cout << fixed << setprecision(10) << (double)(p*b-(b-a)*q) / (q+r) + b << endl;
}
