#include<stdio.h>
int main(){
  int a,A[1000],b,B[1000],i,j,h,total=0,Flag=0;
  scanf("%d",&a);
  for(i=0;i<a;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&b);
  for(i=0;i<b;i++){
    Flag=0;
    scanf("%d",&B[i]);
    for(j=0;j<a-1;j++){
      if(Flag==1)break;
      total=A[j];
      for(h=j+1;h<a;h++){
	total+=A[h];
	if(A[j]+A[h]==B[i] || A[j]==B[i] || A[h]==B[i] || total==B[i]){
	  printf("yes\n");
	  Flag=1;
	  break;
	}
      }
    }
      if(Flag==0)printf("no\n");
  }
}

