#include <bits/stdc++.h>
using namespace std;
int x[1000003], p = 1, t, q, n, m;
int main() {
  cin >> n;
  for (q = 1; q <= n; q++) {
    cin >> t;
    while (t--) x[p] = q, p++;
  }
  cin >> m;
  while (m--) cin >> t, cout << x[t] << endl;
}
