#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int n, q, l;
int A[N], sum[N];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", A + i);
    sum[i] = sum[i - 1] + A[i];
  }
  scanf("%d", &q);
  while (q--) {
    scanf("%d", &l);
    printf("%d\n", lower_bound(sum, sum + n + 1, l) - sum);
  }
  return 0;
}
