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