#include <bits/stdc++.h>
using namespace std;
long long n, i, x, q, query, pos;
vector<long long> t;
vector<long long>::iterator iter;
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  t.push_back(0);
  for (i = 1; i <= n; i++) {
    cin >> x;
    t.push_back(x + t[i - 1]);
  }
  cin >> q;
  for (i = 0; i < q; i++) {
    cin >> query;
    iter = lower_bound(t.begin(), t.end(), query);
    pos = iter - t.begin();
    cout << pos << endl;
  }
  return 0;
}
