#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, d;
  cin >> a >> b >> c >> d;
  double p;
  p = (a * d / (b * c + a * d - a * c));
  cout << setprecision(12) << p << endl;
}
