#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgdDEsIHQyLCB0MywgVCwgVDI7Cglkb3VibGUgdjEsIHYyLCB2MywgUzsKCWRvdWJsZSBzMSwgczIsIHMzOwoJCgljaW4gPj4gdDEgPj4gdDIgPj4gdDM7CgljaW4gPj4gdjEgPj4gdjIgPj4gdjM7CgkKCXMxID0gdjEqdDE7CglzMiA9IHYyKnQyOwoJczMgPSB2Myp0MzsKCVMgPSAoczEgKyBzMiArIHMzKS8yOwoJCglpZiAoIChUID0gUy92MSkgPD0gdDEpIHsKCQljb3V0IDw8IFQgPDwgZW5kbDsKCQlyZXR1cm4gMDsKCX0gZWxzZSB7CgkJVCA9IHQxOwoJfQoKCQoJaWYgKCAoVDIgPSAoUy1zMSkvdjIpIDw9IHQyKSB7CgkJVCs9VDI7CgkJY291dCA8PCBUIDw8IGVuZGw7CgkJcmV0dXJuIDA7Cgl9IGVsc2UgewoJCVQgKz0gdDI7Cgl9CgkKCVQgKz0gKChTLXMxLXMyKS92Myk7Cgljb3V0IDw8IFQgPDxlbmRsOwoJCglyZXR1cm4gMDsKfQ==