#include<stdio.h>
#include<vector>
#include<algorithm>
using namespace std;
double get(vector<double>a,vector<double>b,double med)
{
	double r=0;
	for(int i=0;i<6;i++)r+=max(a[i]*med,b[i]*(1-med));
	return r;
}
int main()
{
	vector<double>a,b;
	for(int i=0;i<6;i++)
	{
		int z;
		scanf("%d",&z);
		a.push_back(double(z)/100.0);
	}
	for(int i=0;i<6;i++)
	{
		int z;
		scanf("%d",&z);
		b.push_back(double(z)/100.0);
	}
	double beg=0.0,end=1.0;
	for(int p=0;p<100;p++)
	{
		double m1=(beg+beg+end)/3.0,m2=(beg+end+end)/3.0;
		if(get(a,b,m1)>get(a,b,m2))beg=m1;
		else end=m2;
	}
	printf("%.15lf\n",get(a,b,beg));
}