#include <stdio.h>
#define A 21

int Back(int, int);

int n,s,N[A];

int main(){
    
    int i, q, ans;
    
    scanf("%d", &n);
    
    for(i = 0; i < n; i++){
        scanf("%d", &N[i]);
    }
    
    scanf("%d", &q);
    
    for(i = 0; i < q; i++){
        
        scanf("%d", &s);
        
        ans = Back(0,0);
        
        if(ans == 1)
            printf("yes\n");
        else
            printf("no\n");
        
    }
    
    return 0;
    
}

int Comeback(int i, int sum){
    
    if(sum == s)
        return 1;
    
    if(i == n)
        return 0;
    
    if(Back((i + 1), N[i] + sum) == 1)
        return 1;
    
    if(Back((i + 1), sum) == 1)
        return 1;
    
    return 0;
    }

