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