#include <bits/stdc++.h>
using namespace std;

int i;
double a, b, c, d;

int main() {
  ios_base::sync_with_stdio(0);

  cin >> a >> b >> c >> d;

  cout << setprecision(7) << fixed << a / c + b / d << '\n';

  return 0;
}