#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, sum = 0, i, j, ara[100000], mid, low, high;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &j);
    sum += j;
    ara[i] = sum;
  }
  scanf("%d", &m);
  for (i = 0; i < m; i++) {
    scanf("%d", &k);
    low = 0;
    high = n - 1;
    for (j = 0;; j++) {
      mid = (high + low) / 2;
      if (ara[mid] == k) {
        printf("%d\n", mid + 1);
        break;
      } else if (ara[mid] > k)
        high = mid;
      else if (ara[mid] < k)
        low = mid + 1;
      if (high == low) {
        printf("%d\n", low + 1);
        break;
      }
    }
  }
  return 0;
}
