#include <stdio.h>
#define Max 2000
 
int n,A[Max];


int solve(int x,int y){
  if(A[x]==y)return 1;
  if(x==n)return 0;
  else{
    if (solve(x+1,y) || solve(x+1,y-A[x]))
      return 1;
  }
  return 0;
}




int main(){

int q,i,M[200];
   
  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<q;i++){
    if(solve(0,M[i])==1)
      printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
 