#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long int M, k, Q, sum = 0, a = 1, W;
  vector<int> x;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lld", &W);
    for (int j = 0; j < W; j++) {
      x.push_back(i);
    }
  }
  scanf("%lld", &M);
  for (k = 1; k <= M; k++) {
    scanf("%lld", &Q);
    printf("%d\n", x[Q - 1]);
  }
  return 0;
}
