#include <stdio.h>

int main () {
	
	int n, a[20],m[200], i, j, q;
	int count = 0 ;

	
	scanf ("%d",&n) ;
	for ( i = 0 ; i < n ; i ++ ) {
		scanf("%d", &s[i] ) ;
	}
	scanf ("%d",&q) ;
	for ( i = 0 ; i < q ; i ++ ) {
		scanf("%d", &t[i] ) ;
	}
	
	
	for ( j = 0 ; j < q ; j++) {
		ans = func(j , m[i]) ; 
		if ( ans == 1 ) {
			printf("yes\n");
		}
		else { 
			printf("nod\n");
		}
	}
	
return 0;
}


int func( int j ,int m) {
	if (m == 0 ) {
		return 1; 
	}
	
	if ( j >= n ) {
		return 0 ;
	}
	
	if ( func( j + 1 , m ) == 1 || func(j + 1, m-a[j]) == 1 ) {
		return 1 ;
	}
	 
	j = j + 1 ;
} 

 