import sys readline = sys.stdin.readline from bisect import * N, K = map(int, readline().split()) A = list(map(int, readline().split())) v = sum(A[:K]) L = [v] for i in range(K, N): v -= A[i - K] v += A[i] L.append(v) L.sort() Q = int(readline()) for _ in range(Q): x = int(readline()) print(bisect_right(L, x))