#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  cout << setprecision(10) << fixed
       << (a * d * 1.0) / (a * d - a * c + b * c + 0.0) << endl;
}
