#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, i;
  cin >> n;
  long long int a[n];
  long long s = 0;
  vector<long long int> v;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    s += a[i];
    v.push_back(s);
  }
  cin >> m;
  long long int b[m];
  for (i = 0; i < m; i++) {
    cin >> b[i];
    auto it = lower_bound(v.begin(), v.end(), b[i]) - v.begin();
    cout << it + 1 << "\n";
  }
}
