#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, p = 0;
  scanf("%d", &n);
  vector<int> v;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    v.push_back(p + a);
    p += a;
  }
  vector<int>::iterator it;
  int q, x;
  scanf("%d", &q);
  for (int i = 0; i < q; i++) {
    scanf("%d", &x);
    it = lower_bound(v.begin(), v.end(), x);
    cout << (it - v.begin()) + 1 << endl;
  }
  return 0;
}
