#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, x;
  vector<int> a;
  vector<int>::iterator it;
  scanf("%d", &n);
  scanf("%d", &x);
  a.push_back(x);
  for (i = 1; i < n; i++) {
    scanf("%d", &x);
    a.push_back(x + a[i - 1]);
  }
  scanf("%d", &m);
  for (i = 0; i < m; i++) {
    scanf("%d", &x);
    it = lower_bound(a.begin(), a.end(), x);
    printf("%d\n", it - a.begin() + 1);
  }
}
