#include <bits/stdc++.h>
using namespace std;
const int OO = (int)2e9;
const double eps = 1e-9;
int daysInMonths[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int di[] = {-1, 0, 1, 0};
int dj[] = {0, 1, 0, -1};
vector<int> v;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m;
  cin >> n;
  v.clear();
  int last = 0;
  for (int i = 0; i < n; i++) {
    int r;
    cin >> r;
    v.push_back(last + r);
    last += r;
  }
  cin >> m;
  for (int i = 0; i < m; i++) {
    int r;
    cin >> r;
    cout << lower_bound(v.begin(), v.end(), r) - v.begin() + 1 << endl;
  }
  return 0;
}
