#include <bits/stdc++.h>
using namespace std;
int sum_pre[100000];
int n, m, v, a;
static int bs(int l, int r) {
  if (l == r) return l;
  int m = (l + r) / 2;
  if (sum_pre[m] < v)
    return bs(m + 1, r);
  else
    return bs(l, m);
}
int main() {
  scanf("%d", &n);
  scanf("%d", &a);
  sum_pre[0] = a;
  for (int i = 1; i < n; ++i) {
    scanf("%d", &a);
    sum_pre[i] += sum_pre[i - 1] + a;
  }
  scanf("%d", &m);
  for (int j = 0; j < m; ++j) {
    scanf("%d", &v);
    printf("%d\n", bs(0, n - 1) + 1);
  }
  return 0;
}
