import sys if sys.platform =='ios': import clipboard a=clipboard.get() a = a.split('\n') text = '\n'.join(a) with open('input_file.txt','w') as f: f.write(text) sys.stdin = open('input_file.txt') from bisect import bisect_right n,k = map(int,input().split()) a = list(map(int,input().split())) A = sum(a[:k]) s = [] s.append(A) for i in range(n-k): A = A-a[i]+a[k+i] s.append(A) s.sort() q = int(input()) for i in range(q): m = int(input()) print(bisect_right(s,m))