#include <stdio.h>
#define MAX_LENGTH 201
int key;
int num;
int A[MAX_LENGTH];
int IsQualified(int index, int sum)
{
    if(index == num){return sum==key;}
    if(IsQualified(index + 1, sum)){return 1;}
    if(IsQualified(index + 1, sum + A[index])){return 1;}
    return 0;
}
int main() {
    int q = 0;
    int M[MAX_LENGTH];
    scanf("%d", &num);
    for(int i=0;i<num;i++){scanf("%d ", &A[i]);}
    scanf("%d", &q);
    for(int i=0;i<q;i++){scanf("%d ", &M[i]);}
    for(int i=0;i<q;i++)
    {
        key = M[i];
        if(IsQualified(0,0)==1)
            printf("yes\n");
        else
            printf("no\n");
    }
    return 0;
}

