#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t, n, x, Q, q;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; ++i) cin >> a[i];
  long long sum[n];
  sum[0] = a[0];
  for (long long i = 1; i < n; ++i) sum[i] = sum[i - 1] + a[i];
  cin >> Q;
  for (long long i = 0; i < Q; ++i) {
    cin >> q;
    x = lower_bound(sum, sum + n, q) - sum;
    cout << x + 1 << "\n";
  }
  return 0;
}
