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