#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[i + 1] = sum;
  int q;
  cin >> q;
  while (q--) {
    int left = 0, right = n;
    int a;
    cin >> a;
    while (left <= right) {
      int mid = (left + right) / 2;
      if (dp[mid] < a)
        left = mid + 1;
      else
        right = mid - 1;
    }
    cout << left << "\n";
  }
  return 0;
}
