#include <bits/stdc++.h>
using namespace std;
int a[101000];
int b[1000100];
vector<pair<int, int> > vx;
vector<pair<pair<int, int>, int> > vz;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int c = 0;
  int q = 0;
  for (int i = 0; i < n; i++) {
    q++;
    for (int j = c + 1; j <= c + a[i]; j++) {
      b[j] = q;
    }
    c = c + a[i];
  }
  int m;
  cin >> m;
  for (int i = 0; i < m; i++) {
    int x;
    cin >> x;
    cout << b[x] << "\n";
  }
  return 0;
}
