#include <bits/stdc++.h>
using namespace std;
clock_t start;
mt19937_64 rng(chrono::system_clock::now().time_since_epoch().count());
const long long N = 1e6 + 10;
long long pile[N];
void solve() {
  long long n;
  cin >> n;
  long long a, curr = 1, sum = 0;
  for (long long i = 0; i < n; i++) {
    cin >> a;
    sum += a;
    for (long long j = curr; j <= sum; j++) pile[j] = i + 1;
    curr = sum + 1;
  }
  long long m;
  cin >> m;
  for (long long i = 0; i < m; i++) {
    long long q;
    cin >> q;
    cout << pile[q] << '\n';
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  start = clock();
  cout << fixed << setprecision(15);
  while (t--) {
    solve();
  }
  double time_taken = double(clock() - start) / double(CLOCKS_PER_SEC);
  cerr << time_taken;
}
