#include <bits/stdc++.h>
using namespace std;
vector<int> vec;
int main() {
  long long int n, sum = 0, t;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t;
    sum += t;
    vec.push_back(sum);
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t;
    if (t <= vec[0]) {
      cout << "1\n";
      continue;
    }
    cout << lower_bound(vec.begin(), vec.end(), t) - vec.begin() + 1 << "\n";
  }
  return 0;
}
