#include<stdio.h>
int main(){

  int i,j,n,q,A[21],m[201];
  int S[2000000] = { 0 };

  scanf("%d", &n );

  for ( i = 0; i < n; i++ ){
    scanf("%d", &A[i] );
  }

  scanf("%d", &q );

  for ( i = 0; i < q; i++ ){
    scanf("%d", &m[i] );
  }

  int cnt,num,key;
  cnt = 1;

  for ( i = 0; i < n; i++ ){
    cnt *= 2;
  }

  for ( i = 0; i < cnt; i++ ){
    num = i;
    
    for ( j = 0; j < n; j++ ){
      if ( num % 2 == 1 ) S[i] = S[i] + A[j];
      num /= 2;
    }
  }

  for ( i = 0; i < q; i++ ){
    key = m[i];
    for ( j = 0; j <= cnt; j++ ){

      if ( j == cnt ){
	printf("no\n");
	break;
      }

      if ( S[j] == key ){
	printf("yes\n");
	break;
      } 

    }
  }

  return 0;

}