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

#define ll long long
#define ld long double
#define inf 100000000000000000
#define rep(i,a) for(ll i=0; i<a; ++i)
#define pb push_back

ld p[6], q[6], x[6], f[6];
ll n=6;

int main() {
  ios::sync_with_stdio(false);
  rep(i,n) {
    cin>>p[i];
  }
  rep(i,n) {
    cin>>q[i];
  }
  rep(i,n) {
    if (p[i]+q[i]!=0) {
      x[i] = q[i]/(p[i]+q[i]);
    }
  }

  rep(i,n) {
    if (p[i]+q[i]!=0) {
      rep(j,n) {
        f[i] += max(p[j]*x[i], q[j]*(1-x[i]));
      }
    }
  }
  ld minf = inf;
  rep(i,n) {
    if (p[i]+q[i]!=0 && f[i]<minf) {
      minf = f[i];
    }
  }
  minf = minf/100;
  cout<<fixed<<setprecision(10)<<minf<<endl;
}
