#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 101010;
int a[MAX_N], sum[MAX_N];
int main() {
  int n, m, q;
  while (scanf("%d", &n) == 1) {
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    for (int i = 1; i <= n; i++) sum[i] = sum[i - 1] + a[i];
    scanf("%d", &m);
    while (m--) {
      scanf("%d", &q);
      int l = 0, r = n + 1, mid;
      while (r - l > 1) {
        mid = l + r >> 1;
        if (sum[mid] < q)
          l = mid;
        else
          r = mid;
      }
      printf("%d\n", r);
    }
  }
  return 0;
}
