#include <stdio.h>
#define TRUE 1
#define FALSE 0

int n1,array[2001];

int caluc(int,int);

int main(){
  int n2,i,value,result;
  
  scanf("%d",&n1);
  for(i=0;i<n1;i++)scanf("%d",&array[i]);

  scanf("%d",&n2);
  for(i=0;i<n2;i++){
    result = 0;
    scanf("%d",&value);
    
    result = caluc(0,value);
    if(result == TRUE)printf("yes\n");
    else printf("no\n");
  }
  
  return 0;
}

int caluc(int i,int m){
  int result;
  
  if(m == 0) return TRUE;
  if(i >= n1) return FALSE;
  result = caluc(i+1,m)||caluc(i+1,m-array[i]);
  return result;
}

