#include <bits/stdc++.h>
using namespace std;
int dp[1000000];
int main() {
  int n;
  cin >> n;
  int arr[n];
  int sum = 0;
  int count = 1;
  int k;
  for (int i = 0; i < n; i++) cin >> k, sum += k, dp[sum] = count++;
  count = 1;
  for (int i = 1; i <= sum; i++) {
    if (dp[i]) {
      count++;
    } else
      dp[i] = count;
  }
  int q;
  cin >> q;
  while (q--) {
    int a;
    cin >> a;
    cout << dp[a] << "\n";
  }
  return 0;
}
