#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m, a, q, label = 0, pile[(int)1e6 + 1];
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    for (int j = 1; j <= a; j++) {
      pile[label + j] = i;
    }
    label += a;
  }
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> q;
    cout << pile[q] << '\n';
  }
  return 0;
}
