#include <bits/stdc++.h>
using namespace std;
int main() {
  int numOfPils, NumOfGood;
  cin >> numOfPils;
  int(*arrayOfPils)[3] = new int[numOfPils][3];
  int temp = 0;
  for (int i = 0; i < numOfPils; i++) {
    cin >> arrayOfPils[i][0];
    if (i == 0) {
      arrayOfPils[0][1] = 1;
      arrayOfPils[0][2] = arrayOfPils[0][0];
      temp = arrayOfPils[0][0];
    } else {
      arrayOfPils[i][1] = temp + 1;
      arrayOfPils[i][2] = arrayOfPils[i][0] + temp;
      temp = arrayOfPils[i][2];
    }
  }
  cin >> NumOfGood;
  int* Marks = new int[NumOfGood];
  for (int i = 0; i < NumOfGood; i++) {
    cin >> Marks[i];
  }
  for (int j = 0; j < NumOfGood; j++) {
    int F = 0;
    int L = numOfPils;
    int M = (F + L) / 2;
    while (F <= L) {
      M = (F + L) / 2;
      if (Marks[j] < arrayOfPils[M][1]) {
        L = M - 1;
      } else if (Marks[j] > arrayOfPils[M][2]) {
        F = M + 1;
      } else if ((Marks[j] < arrayOfPils[M][2] ||
                  Marks[j] == arrayOfPils[M][2]) &&
                 (Marks[j] > arrayOfPils[M][1] ||
                  Marks[j] == arrayOfPils[M][1])) {
        cout << M + 1 << endl;
        break;
      }
    }
  }
  delete arrayOfPils;
  return 0;
}
