#include <bits/stdc++.h>
using namespace std;
int d[100][100], i, j, k = 1, t, n, m, a[1111111], b, x, s;
char ch;
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> x;
    s = s + x;
    for (j = 1; j <= x; j++) {
      a[k++] = i;
    }
  }
  cin >> m;
  for (i = 1; i <= m; i++) {
    cin >> b;
    cout << a[b] << endl;
  }
}
