#include<stdio.h>
#include<stdlib.h>
#define N 20
#define Q 200

int n,A[N];

int judge(int i, int x){
    if(x == 0)return 1;
    if(i >= n)return 0;
    int res = judge(i + 1, x) || judge(i + 1, x - A[i]);
    return res;
}

int main(){
    int q , Mi , i;

    scanf("%d",&n);
    for(i = 0 ; i < n ; i++){
        scanf("%d",&A[i]);
        if(A[i] < 1 || A[i] > 2000)exit(1);
    }
    scanf("%d",&q);
    for(i = 0 ; i < q ; i++){
        scanf("%d",&Mi);
        if(Mi < 1 || Mi > 2000)exit(1);
        if(judge(0,Mi))printf("yes\n");
        else printf("no\n");
    }
    return 0;
}

