#include <bits/stdc++.h>
using namespace std;
int save[100005];
int sum[100005];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> save[i];
  sum[0] = 0;
  for (int i = 1; i <= n; i++) sum[i] = sum[i - 1] + save[i];
  int Q;
  cin >> Q;
  while (Q--) {
    int x;
    cin >> x;
    printf("%d\n", lower_bound(sum + 1, sum + 1 + n, x) - sum);
  }
  return 0;
}
