#include <stdio.h>

#define true  (1)
#define false  (0)

static int n;
static int A[2000];

int
search(int m, int i)
{
        if (m == 0)
                return true;
        if (i >= n)
                return false;

        if (search(m, i + 1) == true || search(m - A[i], i + 1) == true)
                return true;
        else
                return false;
}

int
main(void)
{
        int q;
        int m;
        int i, j;

        scanf("%d", &n);

        for (i = 0; i < n; i++)
                scanf("%d", &A[i]);
        scanf("%d", &q);

        for (j = 0; j < q; j++) {
                scanf("%d", &m);
                if (search(m, 0) == true)
                        printf("yes\n");
                else
                        printf("no\n");
        }
        return 0;
}

