#include <stdlib.h>
#include <stdio.h>

int ppp[4000001];

void judge(int a){    
    if(ppp[a] == 0){
        printf("no\n");
    }
    else{
        printf("yes\n");
    }
}

int fillin(int a, int b, int n, int arr[]){
    if(a==n){
        ppp[b]=1;
        return 1;
    }
    fillin(a+1, b, n, arr);
    fillin(a+1, b+arr[a], n, arr);
}

int main(int argc, char** argv) {
    int n1, n2;
    scanf("%d", &n1);
    int arr1[n1];
    for(int i=0; i<n1; i++){
        scanf("%d", &arr1[i]);
    }
    fillin(0, 0, n1, arr1);
    
    int temp = 0;
    scanf("%d", &n2);
    for(int i=0; i<n2; i++){
        scanf("%d", &temp);
        judge(temp);
    }
    
    return 0;
}

