#include <bits/stdc++.h>
using namespace std;
long int a[100000], n;
int main() {
  long int i, m, x, ind;
  long int a[100000], n;
  vector<long int> v;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 1; i < n; i++) {
    a[i] = a[i] + a[i - 1];
  }
  cin >> m;
  for (i = 0; i < m; i++) {
    cin >> x;
    ind = lower_bound(a, a + n, x) - a;
    v.push_back(ind + 1);
  }
  for (i = 0; i < m; i++) cout << v[i] << "\n";
}
