#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, d, ans;
  cin >> a >> b >> c >> d;
  ans = (a / b) / (1 - (1 - a / b) * (1 - c / d));
  printf("%.12f\n", ans);
  return 0;
}
