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