#include<stdio.h>
int a[25], n, q, x, f;

void r(int i,int sum){
    int res;
    if(sum == x) {f = 1; return;}
    if(i == n || f == 1) return;
    r(i+1, sum);
    r(i+1, sum + a[i]);
}
int main(){
    int i;
    scanf("%d", &n);
    for(i=0;i<n;i++){
        scanf("%d", &a[i]);
    }
    scanf("%d", &q);
    while(q--){
        scanf("%d", &x);

        f = 0;
        r(0,0);
        printf("%s\n", f == 1?"yes": "no");
    }

    return 0;
}

