#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
int HP1, HP2, AP1, AP2;
while (cin >> HP1 >> HP2 >> AP1 >> AP2)
{
int N1 = HP2 / AP1;
if (HP2 % AP1 != 0)
++N1;
int N2 = HP1 / AP2;
if (HP1 % AP2 != 0)
++N2;
double ans = pow(0.5, N1);
double temp = 0;
for (int i = 1; i <= N2 - 1; i++)
{
temp += log10(N1 - 1.0 + i) - log10(i * 1.0);
ans += pow(10, temp + (N1 + i) * log10(0.5));
}
cout << fixed << setprecision(4) << ans * 100 << endl;
}
}