include <stdio.h>
 
int a[25], n, t;
 
int solve(int i,int sum){
    if(i == n){
        return sum == t;
    }
    if(solve(i + 1,sum + a[i])){
        return 1;
    }
    if(solve(i + 1,sum)){
        return 1;
    }
}
 
int main()
{
    int i, q;
    scanf("%d", &n);
    for(i = 0; i < n; i++){
        scanf("%d", a + i);
    }
    scanf("%d", &q);
    for(i = 0; i < q; i++){
        scanf("%d", &t);
        if(solve(0,0)){
            printf("yes\n");
        }else{
            printf("no\n");
        }
    }   
    return 0;
}
