#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1e5 + 1;
int a[MAX_N];
int q[MAX_N];
int c[2000005];
int main() {
  int n, m;
  cin >> n;
  int s = 0;
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    for (int j = 0; j < a[i]; j++) {
      c[++cnt] = i;
    }
  }
  vector<int> v;
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> q[i];
    cout << (c[q[i]]) << endl;
  }
  return 0;
}
