#include <bits/stdc++.h>
using namespace std;
int n;
int a[100010], sum[100010];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  sum[1] = 1;
  for (int i = 2; i <= n; i++) sum[i] = sum[i - 1] + a[i - 1];
  int q;
  scanf("%d", &q);
  for (; q--;) {
    int x;
    scanf("%d", &x);
    printf("%d\n", upper_bound(sum + 1, sum + n + 1, x) - sum - 1);
  }
}
