#include<stdio.h>
int Exhaustive(int n, int *a, int m,int i){
    int res;
    if(m==0) return 1;
    if(i>=n) return 0;
    res=(Exhaustive(n,a,m,i+1) || Exhaustive(n,a,m-*(a+i),i+1));
    return res;

}

int main(void){
    int n,q,j,B;
    int *a,m;
    scanf("%d\n",&n);
    a=malloc(sizeof(int)*(n));
    for(j=0;j<n;j++){
        scanf("%d",(a+j));
    }
    scanf("%d\n",&q);
    for(j=0;j<q;j++){
        scanf("%d",&m);
        B=Exhaustive(n,a,m,0);
        if(B==1) printf("yes\n");
        else printf("no\n");
    }

    free(a);
    
    return 0;
}
