#include <cstdio>

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

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

        return 0;
}