#include <bits/stdc++.h>
using namespace std;
int worms[1000010];
int piles[100010];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", piles + i);
  int now = 1;
  for (int i = 0; i < n; i++) {
    fill(worms + now, worms + now + piles[i], i + 1);
    now += piles[i];
  }
  int m;
  scanf("%d", &m);
  for (int i = 0; i < m; i++) {
    int temp;
    scanf("%d", &temp);
    printf("%d\n", worms[temp]);
  }
}
