#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  vector<int> v;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (i == 0)
      v.push_back(a[i]);
    else {
      v.push_back(v[v.size() - 1] + a[i]);
    }
  }
  int m, temp;
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> temp;
    vector<int>::iterator low = lower_bound(v.begin(), v.end(), temp);
    cout << (low - v.begin()) + 1 << endl;
  }
  return 0;
}
