#include <bits/stdc++.h>
using namespace std;
int a[100001];
int n, m;
void bs(int k) {
  int p = -1;
  for (int i = n; i >= 1; i /= 2) {
    while (p + i < n && a[p + i] <= k) p += i;
  }
  if (a[p] == k)
    cout << p + 1 << endl;
  else
    cout << p + 2 << endl;
}
int main() {
  int k;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (i > 0) a[i] += a[i - 1];
  }
  cin >> m;
  for (int i = 0; i < m; i++) {
    cin >> k;
    bs(k);
  }
}
