#include <stdio.h>

#define T 1
#define F 0

int n,num[2000];

int cul(int i,int sum){
  int res;
  if(sum == 0) return T;
  if(i>=n) return F;
  
  res = cul(i+1,sum) || cul(i+1,sum-num[i]);
  return res;
  

}

int main(){
  int i,sum,n2;

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

  scanf("%d",&n2);
  for(i=0;i<n2;i++){
    scanf("%d",&sum);
    if(cul(0,sum)==T) printf("yes\n");
    else printf("no\n");
  }
  

  return 0;
}