#include <bits/stdc++.h>
using namespace std;
const int N = 2e6 + 5;
int n, m;
int a[N];
int main() {
  std::ios::sync_with_stdio(0);
  ;
  cin >> n;
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    while (x--) {
      a[++cnt] = i;
    }
  }
  cin >> m;
  while (m--) {
    int x;
    cin >> x;
    cout << a[x] << endl;
  }
}
