#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int a[n], i, sum = 0, st = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int m, k, p;
  scanf("%d", &m);
  int b[m], j, h;
  for (j = 0; j < m; j++) {
    scanf("%d", &b[j]);
  }
  for (i = 0; i < n; i++) sum = sum + a[i];
  int ans[sum];
  i = 0, j = 0;
  while (i < sum) {
    while (j < n) {
      p = a[j];
      while (p--) {
        ans[i] = j;
        i++;
      }
      j++;
    }
  }
  for (i = 0; i < m; i++) {
    printf("%d\n", ans[b[i] - 1] + 1);
  }
  return 0;
}
