#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  long long n, x, r = 0, m;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> x;
    r += x;
    v.push_back(r);
  }
  cin >> m;
  for (long long i = 0; i < m; i++) {
    cin >> x;
    long long p = (lower_bound(v.begin(), v.end(), x) - v.begin());
    cout << p + 1 << "\n";
  }
  return 0;
}
