#include <bits/stdc++.h>
using namespace std;
double g[201][201][61];
double ggglobal[201][201][61];
double sigueglobal[201][201][61];
int codglobal[201][201][61];
vector<vector<int> > visto(201, vector<int>(201, -1));
int hp0, dt0, le0, ri0, pier0;
int hp1, dt1, le1, ri1, pier1;
double prob0, prob1;
int codigo(int &t0, int &t1) {
  int mi = min(t0, t1);
  t0 -= mi;
  t1 -= mi;
  if (t1 == 0) return t0;
  return dt0 + t1;
}
double calculag(int h0, int h1, int t0, int t1) {
  if (h1 <= 0) return 1.0;
  if (h0 <= 0) return 0.0;
  int c = codigo(t0, t1);
  if (visto[h0][h1] != -1) return g[h0][h1][c];
  visto[h0][h1] = 1;
  double(&gg)[61] = ggglobal[h0][h1];
  double(&sigue)[61] = sigueglobal[h0][h1];
  int(&cod)[61] = codglobal[h0][h1];
  int t0act = 0;
  int t1act = 0;
  int cact = codigo(t0act, t1act);
  int index = 0;
  do {
    cod[index] = cact;
    if (t0act == 0) {
      double ggg = 0.0;
      for (int pega0 = le0; pega0 <= min(ri0, h1 - 1); pega0++)
        ggg += calculag(h0, h1 - pega0, t0act + dt0, t1act);
      if (ri0 > h1 - 1) ggg += (ri0 - max(le0, h1) + 1);
      gg[index] = ggg * (1 - prob0) / (ri0 - le0 + 1);
      sigue[index] = prob0;
      t0act += dt0;
    } else {
      double ggg = 0.0;
      for (int pega1 = le1; pega1 <= min(ri1, h0 - 1); pega1++)
        ggg += calculag(h0 - pega1, h1, t0act, t1act + dt1);
      gg[index] = ggg * (1 - prob1) / (ri1 - le1 + 1);
      sigue[index] = prob1;
      t1act += dt1;
    }
    index++;
    cact = codigo(t0act, t1act);
  } while (cact != 0);
  double probno = 1.0;
  double gacum = 0.0;
  for (int i = index - 1; i >= 0; i--) {
    probno = probno * sigue[i];
    gacum = sigue[i] * gacum + gg[i];
  }
  double ganar00 = gacum / (1.0 - probno);
  gacum = ganar00;
  for (int i = index - 1; i >= 0; i--) {
    gg[i] = sigue[i] * gacum + gg[i];
    gacum = gg[i];
  }
  for (int i = 0; i < index; i++) {
    g[h0][h1][cod[i]] = gg[i];
  }
  return g[h0][h1][c];
}
int main() {
  cout.setf(ios::fixed);
  cout.precision(10);
  cin >> hp0 >> dt0 >> le0 >> ri0 >> pier0 >> hp1 >> dt1 >> le1 >> ri1 >> pier1;
  if (pier0 == 100) {
    cout << 0.0 << endl;
    exit(0);
  } else if (pier1 == 100) {
    cout << 1.0 << endl;
    exit(0);
  }
  prob0 = pier0 / 100.0;
  prob1 = pier1 / 100.0;
  cout << calculag(hp0, hp1, 0, 0) << endl;
}
