#include <bits/stdc++.h>
using namespace std;
int c[1001000];
int main() {
  int a[100010], a2[100010];
  int b[100100], b2[100100], n, m;
  while (cin >> n) {
    int i;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      if (i == 0)
        a2[i] = a[i];
      else
        a2[i] = a[i] + a2[i - 1];
    }
    cin >> m;
    for (i = 0; i < m; i++) {
      cin >> b[i];
      b2[i] = b[i];
    }
    sort(b2, b2 + m);
    int j = 0;
    for (i = 0; i < m; i++) {
      while (1) {
        if (b2[i] <= a2[j]) {
          c[b2[i]] = j + 1;
          break;
        } else
          j++;
      }
    }
    for (i = 0; i < m; i++) {
      cout << c[b[i]] << endl;
    }
  }
}
