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