#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;
    cin >> n;
    vector<int> p(n);
    for (int i = 0; i < n; i++) {
        cin >> p[i];
        if (i)
            p[i] += p[i - 1];
    }
    int q;
    cin >> q;
    while (q--) {
        int x;
        cin >> x;
        cout << lower_bound(p.begin(), p.end(), x) - p.begin() + 1 << '\n';
    }
}
