#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, x, s = 0;
  vector<int> v;
  cin >> n;
  while (n--) {
    cin >> x;
    s += x;
    v.push_back(s);
  }
  cin >> m;
  while (m--) {
    cin >> x;
    cout << lower_bound(v.begin(), v.end(), x) - v.begin() + 1 << endl;
  }
  return 0;
}
