#include<stdio.h>
int dp[21][40001];
int main(void){
    int n,A[100],q,key;
    int i,j;
    scanf("%d",&n);
    A[i]=0;
    for(i=1;i<=n;i++) scanf("%d",&A[i]);
    
    dp[0][0]=1;
    for(i=0;i<n;i++){
	for(j=0;j<=40000;j++){
	    if(dp[i][j]==1){
		dp[i+1][j]=1;
		dp[i+1][j+A[i+1]]=1;
	    }
	}
    }

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

    return 0;
}