#include <bits/stdc++.h>
using namespace std;
 
double calc(int *p,int *q,double r)
{
  double ans=0;
  for(int i=0;i<6;i++){
    ans+=max(r*p[i]/100.,(1-r)*q[i]/100.);
  }
  return ans;
}

int main()
{
  int p[6],q[6];
  for(int i=0;i<6;i++){
    scanf("%d",p+i);
  }
  for(int i=0;i<6;i++){
    scanf("%d",q+i);
  }
  double r0=0.,r3=1.;
  while(r3-r0>1e-12){
    double r1=(2*r0+r3)/3,r2=(r0+2*r3)/3;
    double d1=calc(p,q,r1),d2=calc(p,q,r2);
    if(d1<d2){
      r3=r2;
    }
    else{
      r0=r1;
    }
  }
  printf("%.12lf\n",calc(p,q,(r0+r3)/2.));
  return 0;
}
