#include<stdio.h>
#define N 200
int a,A[N];
int judge(int, int);

int main(){
    int b,B[N],i;

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

    scanf("%d",&b);
    for(i = 0;i < b;i++){
        scanf("%d",&B[i]);
    }
    for(i = 0;i < b;i++){
        if(judge(0,B[i]) == 1){
            printf("yes\n");
        }else printf("no\n");
    }

    return 0;
}
int judge(int cnt,int c)
{
int sum;
if(c == 0)return 1;
if(cnt >= a)return 0;
sum = judge(cnt+1,c) || judge(cnt+1,c - A[cnt]);
return sum;
}
