#include <stdio.h>
#define MAX 2000
int N1,A[MAX];

int Solve(int x,int y);
    int r;
    if(y==0)return 1;
    if(x>=N1)return 0;
    
    r=Solve(x+1,y)||(x+1,y-A[x]);
    return r;
    }
    
    int main(){
        int i,B,N2;
        
        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);
            if(Solve(0,B)==1){
                printf("yes\n");
            }
            else printf("no\n");
            }
            return 0;
        
    }

