#include <bits/stdc++.h>
using namespace std;
int arr2[1000005] = {0};
int main() {
  int arr1[100005];
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr1[i];
  int x = 1;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < arr1[i]; j++) {
      arr2[x] = i + 1;
      x++;
    }
  }
  int m, y;
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> y;
    cout << arr2[y] << endl;
  }
  return 0;
}
