#include <stdio.h>

int main() {
    
    int i,j,k,A[20],B[200],N1,N2,C[4000],N3;
    
    scanf("%d",&N1);
    
    for(i=0;i<N1;i++){
        scanf("%d",&A[i]);
    }
    
    scanf("%d",&N2);
    
    for(i=0;i<N2;i++){
        scanf("%d",&B[i]);
    }
    N3=N1*N1;
    i=0;
    
    for(j=0;j<N1;j++){
        for(k=0;k<N1;k++){
            if(j!=k){
                c[i]=A[j]+A[k];
            }
            i++;
                
            
        }
    }
    
    for(i=0;i<N2;i++){
        k=0;
        for(j=0;j<N3;j++){
            
            if(A[j]==B[i]){
                printf("yes\n");
                break;
            }
            if(c[j]==B[i]){
                printf("yes\n");
                break;
            }
            k++;
        }
        if(k==N3){
            printf("no\n");
            }
        }
    return 0;
}
