#include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
  int n, m, k;
  while (scanf("%d", &n) != EOF) {
    a[0] = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
      a[i] += a[i - 1];
    }
    scanf("%d", &m);
    for (int i = 0; i < m; i++) {
      scanf("%d", &k);
      printf("%d\n", lower_bound(a, a + n, k) - a);
    }
  }
  return 0;
}
