#include <stdio.h>
#include <stdbool.h>

int n_from;
int from[20];

int id;
bool canMake(int id, int target);

int main(void)
{
    int i;

    scanf("%d", &n_from);
    for (i = 0; i < n_from; i++) {
        scanf(" %d", &from[i]);
    }

    int n_target;
    scanf("%d", &n_target);
    int target;
    while (n_target--) {
        id = 0;
        scanf(" %d", &target);
        if (canMake(id, target)) {
            printf("yes\n");
        } else {
            printf("no\n");
        }
    }

    return 0;
}

bool canMake(int id, int target)
{
    /*
    int i;
    printf("judging if can make %d from", target);
    for (i = id; i < n_from; i++) {
        printf(" %d", from[i]);
    }
    printf("\n");
    */

    if (id == n_from) {
        return (target == 0);
    }

    if (canMake(id + 1, target)) {
        return true;
    }
    if (canMake(id + 1, target - from[id])) {
        return true;
    }

    return false;
}