#include<stdio.h>

int num1,first[2000];
  
int solve(int a,int b){
  int result;
  if(b==0){
    return 1;
  }
  if(a>=num1){
    return 0;
  }
  result=solve(a+1,b) || solve(a+1,b-first[a]);
  return result;
}



int main(){
 int i,num2,second[2000];
   scanf("%d",&num1);
  for(i=0;i<num1;i++){
    scanf("%d",&first[i]);
  }
  scanf("%d",&num2);
  for(i=0;i<num2;i++){
    scanf("%d",&second[i]);
  }

  for(i=0;i<num2;i++){
    if(solve(0,second[i])){
	printf("yes\n");
      }else{
	printf("no\n");
      }
  }
  return 0;
}





