#include<stdio.h>
#define N 2000
int kaneko[N+1];
int main(void){
    int n,k,q,key,sum=0;
    int i,j;

    kaneko[0]=1;
    scanf("%d",&n);
    for(i=0;i<n;i++){
	scanf("%d",&k);
	sum+=k;
	for(j=sum-k;j>=0;j--){
	    if(kaneko[j]) kaneko[j+k]=1;
	}
    }

    scanf("%d",&q);
    for(i=0;i<q;i++){
	scanf("%d",&key);
	if(kaneko[key]) printf("yes\n");
	else printf("no\n");
    }

    return 0;
}

