#include <stdio.h>

int solve(int A[], int array_size, int index, int sum)
{
    if(index == array_size){
        if(sum == 0) return 1;
        else return 0;
    }
    else if(sum == 0) return 1;
    else if(sum < 0) return 0;
    else return
        solve(A, array_size, index+1, sum-A[index]) 
        || solve(A, array_size, index+1, sum); 
}

int main(){
    int n,q;
    scanf("%d", &n);
    int A[25];
    for(int i=0; i<n; i++){
        scanf("%d", &A[i]);
    }
    scanf("%d", &q);
    for(int i=0; i<q; i++){
        int m;
        scanf("%d", &m);
        int result = solve(A, n, 0, m);
        if(result == 1) printf("yes\n");
        else printf("no\n");
    }
}

