#include <iostream>
#include <cstdio>
using namespace std;

double pA[6];
double pB[6];
double wynn = 1.0;

void sprawdz(double p) {
	double res = 0.0;
	for(int i = 0; i < 6; ++i) {
		if(pA[i] + pB[i] < 1e-8) continue;
		double pom = pB[i] / (pA[i] + pB[i]);
		
		double ww;
		if(p > pom) ww = p * pA[i];
		else ww = (1.0 - p) * pB[i];
		res += ww;
	}
	wynn = min(wynn, res);
}

int main() {
	ios_base::sync_with_stdio(0);
	for(int i = 0; i < 6; ++i) cin >> pA[i];
	for(int i = 0; i < 6; ++i) cin >> pB[i];

	for(int i = 0; i < 6; ++i) {
		pA[i] /= 100.0;
		pB[i] /= 100.0;
	}
	
	for(int i = 0; i < 6; ++i) {
		if(pA[i] + pB[i] < 1e-8) continue;
		double pp = pB[i] / (pA[i] + pB[i]);
		sprawdz(pp);
	}
	
	cout.precision(12);
	cout << fixed;
	cout << wynn << endl;
	return 0;
}