#include <bits/stdc++.h>
using namespace std;
int pos[1000100];
int n, m, x, sum, y;
int main() {
  ios ::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  cin >> x;
  sum = x;
  y = x;
  for (int i = 1; i <= x; i++) pos[i] = 1;
  for (int i = 2; i <= n; i++) {
    cin >> x;
    sum += x;
    for (int j = y + 1; j <= sum; j++) pos[j] = i;
    y = sum;
  }
  cin >> m;
  for (int i = 1; i <= m; i++) {
    cin >> x;
    cout << pos[x] << endl;
  }
  return 0;
}
