#include<stdio.h>
int n,A[20+1];
int Exhaustive(int i,int key){
    int a;
    if(key==0)return 1;
    if(i>=n)return 0;

    if(Exhaustive(i+1,key)){
        a=1;
        //a=Exhaustive(i+1,key);
    }else if(Exhaustive(i+1,key-A[i])){
        a=1;
        //a=Exhaustive(i+1,key-A[i]);
    }else return 0;
    return a;
}
int main(){
    int q,m;
    int i;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&A[i]);
    }
    scanf("%d",&q);
    for(i=0;i<q;i++){
        scanf("%d",&m);
        if(Exhaustive(0,m)){
        printf("yes\n");
        }else printf("no\n");
     }
    return 0;
}
