#include <bits/stdc++.h>
using namespace std;
int upper(vector<int>& vec, int a) {
  vector<int>::iterator uppers;
  uppers = std::upper_bound(vec.begin(), vec.end(), a);
  return uppers - vec.begin();
}
int main() {
  int n;
  cin >> n;
  vector<int> vec;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    vec.push_back(a - 1);
  }
  vector<int> vec2;
  int m = 0;
  for (int i = 0; i < n; i++) {
    m = m + 1;
    vec2.push_back(m);
    m = m + vec[i];
    vec2.push_back(m);
  }
  int w;
  cin >> w;
  vector<int> vec3;
  while (w--) {
    int a;
    cin >> a;
    vec3.push_back(a);
  }
  for (int i = 0; i < vec3.size(); i++) {
    int u = upper(vec2, vec3[i]) + 1;
    cout << u / 2 << "\n";
  }
  return 0;
}
