#include <bits/stdc++.h>
int str[100009];
int main(void) {
  int n, m;
  scanf("%d", &n);
  str[0] = 0;
  for (int i = 1; i <= n; i++) {
    int c;
    scanf("%d", &c);
    str[i] = str[i - 1] + c;
  }
  scanf("%d", &m);
  while (m--) {
    int c;
    scanf("%d", &c);
    if (str[n - 1] < c) {
      printf("%d\n", n);
    } else if (str[1] >= c) {
      printf("1\n");
    } else {
      int up = n, down = 1, mid;
      while (1) {
        mid = (up + down) / 2;
        if (str[mid] >= c && str[mid - 1] < c) {
          printf("%d\n", mid);
          break;
        }
        if (str[mid] >= c)
          up = mid;
        else
          down = mid + 1;
      }
    }
  }
  return 0;
}
