#include<stdio.h>

#ifndef Boolean 
#define Boolean int
#endif

#ifndef TRUE       
#define TRUE 1
#endif

#ifndef FALSE 
#define FALSE 0
#endif

int A[50],n;
Boolean solve(int i,int m){
  if(m==0)return TRUE;
  if(i>=n)return FALSE;
  
  if(solve(i+1,m)==TRUE||solve(i+1,m-A[i])==TRUE)return TRUE;
  else return FALSE;
}

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