#include <iostream>
using namespace std;

int main() {
	double t1, t2, t3, T, T2;
	double v1, v2, v3, S;
	double s1, s2, s3;
	
	cin >> t1 >> t2 >> t3;
	cin >> v1 >> v2 >> v3;
	
	s1 = v1*t1;
	s2 = v2*t2;
	s3 = v3*t3;
	S = (s1 + s2 + s3)/2;
	
	if ( (T = S/v1) <= t1) {
		cout << T << endl;
		return 0;
	} else {
		T = t1;
	}

	
	if ( (T2 = (S-s1)/v2) <= t2) {
		T+=T2;
		cout << T << endl;
		return 0;
	} else {
		T += t2;
	}
	
	T += ((S-s1-s2)/v3);
	cout << T <<endl;
	
	return 0;
}