#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int piles;
  cin >> piles;
  vector<int> worms(piles + 1);
  worms[0] = 1;
  for (int i = 0; i < piles; ++i) {
    cin >> worms[i + 1];
    worms[i + 1] += worms[i];
  }
  int juicy_worms;
  cin >> juicy_worms;
  for (int i = 0; i < juicy_worms; ++i) {
    int to_find;
    cin >> to_find;
    cout << upper_bound(worms.begin(), worms.end(), to_find) - worms.begin()
         << '\n';
  }
}
