#include <cstdio>

using namespace std;

double l[10],v1, v2;

int main()
{
    for (int i = 0; i < 10; i++)
    {
        scanf("%lf,", &l[i]);
    }
    for (int i = 0; i < 10; i++)
    {
        l[i] += ((i != 0) ? l[i - 1] : 0);
    }
    scanf("%lf,%lf\n", &v1, &v2);

    v2 += v1;
    double t = l[9] / v2;
    double dis = v1 * t;
    for( int i = 0; i < 10; i++ )
    {
        if( l[i] <= dis && dis <= l[i + 1] )
        {
            printf( "%d\n", i + 2 );
            return 0;
        }
    }
    printf( "%d\n", 10 );
    return 0;
}
