#include <bits/stdc++.h>
int w[1000000];
int main() {
  int n, pre = 0, cur, cur_worm, m, i, j;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &cur);
    for (j = pre + 1; j <= pre + cur; j++) w[j] = i + 1;
    pre += cur;
  }
  scanf("%d", &m);
  for (i = 0; i < m; i++) {
    scanf("%d", &cur_worm);
    printf("%d\n", w[cur_worm]);
  }
  return 0;
}
