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