#include <bits/stdc++.h>
using namespace std;
int main() {
  pair<long long int, long long int> vr[100001];
  int n, sum = 1;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    int temp1, temp2;
    temp1 = sum;
    temp2 = (a[i] + sum) - 1;
    sum += a[i];
    vr[i].first = temp1;
    vr[i].second = temp2;
  }
  long long int m;
  cin >> m;
  long long int q[m];
  for (int i = 0; i < m; i++) {
    cin >> q[i];
    int l = 0, r = n - 1, m;
    while (l <= r) {
      m = (l + r) / 2;
      if (q[i] > vr[m].first && q[i] > vr[m].second) {
        l = m + 1;
      }
      if (q[i] < vr[m].first && q[i] < vr[m].second) {
        r = m - 1;
      } else if (q[i] >= vr[m].first && q[i] <= vr[m].second) {
        cout << m + 1 << endl;
        break;
      }
    }
  }
  return 0;
}
