#include<stdio.h>

int search(int n, int i, int arr[], int target){
    int res;
    if(target==0){
        return 1;
    }
    if(i>=n){
        return 0;
    }
    res = search(n, i+1, arr, target-arr[i]) || search(n, i+1, arr, target);
    return res;
}

int main(){
    int num, i, q, target;
    scanf("%d", &num);
    int int_list[num];
    for(i=0; i<num; i++){
        scanf("%d", &int_list[i]);
    }
    scanf("%d", &q);
    for(i=0; i<q; i++){
        scanf("%d", &target);
        if(search(num, 0, int_list, target)){
            printf("yes\n");
        }else{
            printf("no\n");
        }
    }
    return 0;
}