#include <stdio.h>
#include <stdlib.h>

int solve(int *array, int n, int i, int m) 
{
    int ret;

    if(m == 0) 
        return 1;
    if(i >= n)
        return 0;
    ret = solve(array, n, i + 1, m) || solve(array, n, i + 1, m - array[i]);

    return ret;
}

int main(void) 
{
    int i, n, q, A, m;
    int *array;

    scanf("%d", &n);
    array = malloc(sizeof(int) * n);
    for(i = 0; i < n; i++) {
        scanf("%d", &A);
        array[i] = A;
    }
    scanf("%d", &q);
    for(i = 0; i < q; i++) {
        scanf("%d", &m);
        if(solve(array, n, 0, m)) 
            printf("yes\n");
        else 
            printf("no\n");
    }

    return 0;
}