#include <stdio.h>
#include <stdlib.h>
void printArray(int,int[]);
int solve(int,int,int,int[]);

int main(int argc, char** argv) {
    int size1, size2;
    scanf("%d\n", &size1);
    int array1[size1];
    for(int i = 0; i < size1; i++)
        scanf("%d", &array1[i]);
    scanf("%d\n", &size2);
    int array2[size2];
    for(int i = 0; i < size2; i++)
        scanf("%d", &array2[i]);
    
    for(int i = 0; i < size2; i++){
        if(solve(0, array2[i], size1, array1))
            printf("yes\n");
        else printf("no\n");
    }
    
    return (EXIT_SUCCESS);
}

void printArray(int size, int a[size]){
    for(int i = 0; i < size; i++){
        if(i != size - 1)
            printf("%d ", a[i]);
        else printf("%d\n", a[i]);
    }
}

int solve(int index, int val, int size, int a[size]){
    if(index < size && val-a[index] > 0 && solve(index+1, val-a[index], size, a))
        return 1;
    else if(index+1 > size) return 0;
    else if(val==a[index])return 1;
    return solve(index+1, val, size, a);
}

