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