#include <bits/stdc++.h>
using namespace std;
class TC {
 public:
  void solve() {
    long long int i, n;
    cin >> n;
    long long int a[n];
    for (i = 0; i < n; i++) {
      cin >> a[i];
      if (i > 0) {
        a[i] += a[i - 1];
      }
    }
    long long int m;
    cin >> m;
    long long int b[m], j = 0;
    while (m--) {
      long long int x, l = 0, h = n - 1, mid;
      cin >> x;
      while (l <= h) {
        mid = (l + h) / 2;
        if (x == a[mid]) {
          l = mid;
          break;
        }
        if (x < a[mid]) {
          h = mid - 1;
        } else {
          l = mid + 1;
        }
      }
      b[j] = l + 1;
      j++;
    }
    for (i = 0; i < j; i++) {
      cout << b[i] << endl;
    }
  }
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t = 1, i;
  for (i = 1; i <= t; i++) {
    TC tc;
    tc.solve();
  }
  return 0;
}
