#include <bits/stdc++.h>
int const MAX = 1e6 + 5;
int num[MAX];
int main() {
  int n;
  scanf("%d", &n);
  int sum = 0, temp;
  int sign = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &temp);
    sum += temp;
    for (int j = sign; j <= sum; j++) num[j] = i;
    sign = sum + 1;
  }
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &temp);
    printf("%d\n", num[temp]);
  }
}
