#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    while (1)
    {
        double dis;
        double a[10];
        char c;
        rep(i, 10)
        {
            cin >> a[i] >> c;
        }
        if (cin.eof())
            break;

        double s[11] = {};
        rep(i, 10) s[i + 1] = s[i] + a[i];

        dis = s[10];

        double v1, v2;
        cin >> v1 >> c >> v2;
        double x = v1 * dis / (v1 + v2);

        for (int i = 1; i <= 10; i++)
        {
            if (x <= s[i])
            {
                OP(i);
                break;
            }
        }
    }

    return 0;
}
