#include <bits/stdc++.h>
using namespace std;
int a[10000001], n, m, x;
int main() {
  cin >> n;
  int beg = 1;
  int prev = 0;
  for (int i = 0; i < n; i++) {
    cin >> x;
    for (int j = beg; j <= prev + x; j++) a[j] = i + 1;
    prev += x;
    beg += x;
  }
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> x;
    cout << a[x] << endl;
  }
  return 0;
}
