#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n;
  long long *arr = new long long[n];
  for (long long i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  cin >> m;
  int *arr2 = new int[m];
  for (int i = 1; i < n; ++i) {
    arr[i] = arr[i] + arr[i - 1];
  }
  for (long long i = 0; i < m; ++i) {
    int r;
    cin >> r;
    int l = lower_bound(arr, arr + n, r) - arr;
    if (l < n) {
      cout << l + 1 << endl;
    }
  }
}
