#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, j = 1, t, a[1000002];
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> t;
    while (t--) {
      a[j] = i;
      j++;
    }
  }
  cin >> m;
  while (m--) {
    cin >> t;
    cout << a[t] << endl;
  }
  return 0;
}
