#include <bits/stdc++.h>
using namespace std;
int fun(int, int, int);
long long int ary[100001];
int main() {
  int number;
  cin >> number;
  ary[0] = 1;
  for (int i = 1; i <= number; i++) {
    int a;
    cin >> a;
    ary[i] = ary[i - 1] + a;
  }
  int p;
  cin >> p;
  for (int i = 0; i < p; i++) {
    int n;
    cin >> n;
    cout << fun(0, number, n) + 1 << endl;
  }
  return 0;
}
int fun(int a, int b, int n) {
  int mid = (a + b) / 2;
  if (a + 1 == b) return a;
  if (n < ary[mid])
    return fun(a, mid, n);
  else if (n > ary[mid])
    return fun(mid, b, n);
  else
    return mid;
}
