#include<stdio.h>

int check(int i, int m, int n, int a[])
{
	int c;
	if( m == 0 ){
		c = 1;
	}else if( i >= n ){
		c = 0;
	}else{
		c = check(i+1, m, n, a) + check(i+1, m-a[i], n, a);
	}
	
	return c;
}

int main(void)
{
	int n, q, i, m, c;
	scanf( "%d", &n );
	int a[n];
	for( i = 0; i < n; i++ ){
		scanf( "%d", &a[i] );
	}
	scanf( "%d", &q );
	
	for( i = 0; i < q; i++ ){
		scanf( "%d", &m );
		c = check(0, m, n, a);
		if( c == 0 ){
			printf( "no\n" );
		}else{
			printf( "yes\n" );
		}
	}
	
	return 0;
}
