#include<stdio.h>
#define N 2000

int solve(int,int*,int);

int main(){
    int i,n,A[N],q,m[N];
    
    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[i]);
    }

    for(i=0;i<q;i++){
        if(solve(m[i],A,n) == 1) printf("yes\n");
        else printf("no\n");
    }

    return 0;
}


int solve(int n,int* arr,int m){
    if(m == 0)return 0;
    if(n == arr[0])return 1;
    if(n < arr[0])return solve(n,arr+1,m-1);
    return solve(n-arr[0],arr + 1, m - 1) || solve(n,arr + 1 , m - 1);
}

