#include <cstdio>

int main()
{
        const int MAX = 10;
        float l[MAX];
        int v1, v2;

        scanf("%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%d,%d",
                                 &l[0], &l[1], &l[2], &l[3],
                                 &l[4], &l[5], &l[6], &l[7],
                                 &l[8], &l[9], &v1, &v2);
        float sumL = 0.0;
        for (float f: l) {
                sumL += f;
        }
        float vm1 = v1 / 60.0, vm2 = v2 /60.0;
        float l1 = 0.0, l2 = 0.0;
        while (l1 + l2 < sumL) {
                l1 += vm1;
                l2 += vm2;
        }
        float len = 0.0;
        int i = 0;
        while (len < l1) {
                len += l[i++];
        }
        printf("%d\n", i);

        return 0;
}