#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, sum = 0, q;
  vector<int> v;
  vector<int>::iterator it;
  scanf("%d", &n);
  while (n--) {
    scanf("%d", &x);
    sum += x;
    v.push_back(sum);
  }
  int sz = v.size();
  scanf("%d", &q);
  while (q--) {
    scanf("%d", &x);
    it = lower_bound(v.begin(), v.end(), x);
    printf("%d\n", (it - v.begin()) + 1);
  }
  return 0;
}
