#include <bits/stdc++.h>
using namespace std;
double dpv[3211][201], dpe[3211][201];
int main() {
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  double pv, pe;
  int hpv, dtv, lv, rv, hpe, le, re, dte, i, j, k;
  cin >> hpv >> dtv >> lv >> rv >> pv >> hpe >> dte >> le >> re >> pe;
  if (pv == 100) {
    cout << "0";
    return 0;
  }
  if (pe == 100) {
    cout << "1";
    return 0;
  }
  pe = pe / 100;
  pv = pv / 100;
  dpv[0][hpv] = 1;
  dpe[0][hpe] = 1;
  for (i = 0; i <= 3200; i++) {
    for (j = 0; j <= hpv; j++) {
      dpv[i + 1][j] += dpv[i][j] * pe;
      for (k = le; k <= re; k++)
        dpv[i + 1][max(0, j - k)] +=
            dpv[i][j] * ((1.0 - pe) / (double)(re - le + 1));
    }
  }
  for (i = 0; i <= 3200; i++) {
    for (j = 0; j <= hpe; j++) {
      dpe[i + 1][j] += dpe[i][j] * pv;
      for (k = lv; k <= rv; k++)
        dpe[i + 1][max(0, j - k)] +=
            dpe[i][j] * ((1.0 - pv) / (double)(rv - lv + 1));
    }
  }
  double ans = 0, t;
  for (i = 1; i <= 3200; i++) {
    t = (i - 1) * dtv + dte - 1;
    t = t / dte;
    if (t > 3200) break;
    ans = ans + (dpe[i][0] - dpe[i - 1][0]) * (1.0 - dpv[(int)t][0]);
  }
  cout << ans;
  return 0;
}
