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

// return =>  0...false, 1...true
// list => list
// n => list's length
// now => now list's place
// sum => use number's sum
// Goal = imput number
int Checker(int list[], int n, int now,int sum, int Goal){
	int ret = 0;
	
	if(sum + list[now] == Goal){
		return 1;
	}else if(now + 1 == n){
		return 0;
	}
	//used
	if(sum + list[now] < Goal){
		ret = Checker(list, n, now + 1, sum + list[now], Goal);
		if(ret == 1){
			return 1;
		}
	}
	
	//unused
	ret = Checker(list, n, now + 1, sum, Goal);
	if(ret == 1){
		return 1;
	}else{
		return 0;
	}
}

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




