#include<stdio.h>
int n, A[50];

int Solve(int i, int M){
    if(M==0) return 1;
    if(i>=n) return 0;
    int res = Solve(i+1,M) || Solve(i+1,M-A[i]);
    return res;
}


int main(void){
    int q,M;
    
    scanf("%d",&n);
    for(int i=0;i<n;i++) scanf("%d", &A[i]);
    scanf("%d",&q);
    for(int i=0;i<q;i++){
        scanf("%d",&M);
        if(Solve(0,M)) printf("yes\n");
        else printf("no\n");
    }
    
    return 0;
}
