#include <stdio.h>
#define YES 1
#define NO 0

int check(int,int, int*);

int solve(int,int,int,int*);

int main(){
  int n,i=0,q,YorN;

  scanf("%d",&n);

  int A[n];

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

  scanf("%d",&q);

  int M[q];

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

  for(i=0;i<q;i++){
    YorN=check(M[i],n,A);

    if(YorN==YES) printf("yes\n");
    else if(YorN==NO) printf("no\n");
  }
  
  return 0; 
}

int check(int m,int n,int *A){
  int i=0,res=-1;

  res=solve(i,m,n,A);

  return res;

}

int solve(int i,int m,int n,int *A){
  int res=-1;
  if(m==0) return YES;
  
  if(i>=n) return NO;
  
  if(res!=YES)res=solve(i+1,m,n,A);
  
  if(res!=YES)res=solve(i+1,m-A[i],n,A);

  return res;
}

