#include<stdio.h>
#define max 2000
int main(){
  int n,q,A[max],m[max],s[max],i,j = 0,k = 0,jud =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]);
  }

    
    for(i = 0;i < n;i++){
      s[k] = A[i];
      k++;
      for(j = i+1;j < n;j++){
	s[k] = A[i] + A[j];
	k++;
	if(i <= 2){
	s[k] = A[i] + A[j] + A[j+1];
	k++;
	}
	if(i <= 1){
	s[k] = A[i] + A[j] + A[j+1] + A[j+2];
	k++;
	}
	if(i == 0){
	s[k] = A[i] + A[j] + A[j+1] + A[j+2]+A[j+3];
	k++;
	}
      }
    }
    j = 0;
    while(1){
    for(i = 0;i < k;i++){
      if(s[i] == m[j]){jud++;}
    }
    if(jud == 1){printf("yes\n");}
    else {printf("no\n");}
    j++;
    jud = 0;
    if(q == j)break;
    }

    return 0;
}