#include<bits/stdc++.h>
#define maxn 500005
#define ll long long
#define endl '\n'
using namespace std;
int arr[maxn];
ll dp[maxn];
bool ans[maxn];
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n,d;
	cin >> n >> d;
	for(int i=1;i<=n;i++)
		cin >> arr[i];
	dp[n] = 1;
	for(int i=n-1;i>=1;i--) {
		if(dp[i+1] * 2 <= arr[i+1])	
			dp[i] = dp[i+1];
		else
			dp[i] = dp[i+1] + arr[i+1];
	}
	for(int i=1;i<=n;i++) {
		if((ll)d >= dp[i]) 
			ans[i] = true;
		d = min(d,abs(d - arr[i]));
	}
	int q;
	cin >> q;
	while(q--) {
		int idx;
		cin >> idx;
		cout << (ans[idx] ? "YES" : "NO") << endl;
	}
	return 0;
}
