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