#include <bits/stdc++.h>
using namespace std;
int a, b = 0, c, z, y, l, r, t;
int main() {
  cin >> a;
  int A[a];
  for (z = 0; z < a; z++) {
    cin >> b;
    if (z > 0) {
      A[z] = A[z - 1] + b;
    } else {
      A[z] = b;
    }
  }
  cin >> a;
  int B[a];
  int C[a];
  for (z = 0; z < a; z++) {
    cin >> B[z];
  }
  for (z = 0; z < a; z++) {
    l = 0;
    r = (sizeof(A) / sizeof(A[0]));
    c = (l + r) / 2;
    int temp1 = -1, temp2 = -2;
    while (c >= 0 && c <= (sizeof(A) / sizeof(A[0])) && temp2 != temp1) {
      if (B[z] <= A[c]) {
        if (B[z] > A[c - 1]) {
          C[z] = c + 1;
          break;
        } else if (c != 0) {
          temp2 = temp1;
          temp1 = A[c];
          r = c;
        } else {
          C[z] = c + 1;
          break;
        }
      } else if (B[z] > A[c]) {
        temp2 = temp1;
        temp1 = A[c];
        l = c;
      }
      c = (l + r) / 2;
    }
  }
  for (z = 0; z < a; z++) {
    cout << C[z] << "\n";
  }
}
