#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long int n;
  cin >> n;
  unordered_map<long long int, long long int> pos;
  long long int prev, now;
  cin >> now;
  for (long long int i = 1; i <= now; ++i) pos[i] = 1;
  for (long long int i = 2; i <= n; ++i) {
    prev = now + 1;
    long long int a;
    cin >> a;
    now += a;
    for (long long int j = prev; j <= now; ++j) pos[j] = i;
  }
  long long int m;
  cin >> m;
  while (m--) {
    long long int a;
    cin >> a;
    cout << pos[a] << '\n';
  }
  return 0;
}
