#include<stdio.h>
int n1,ary[50];

int solve(int i,int value){
  int res;
  if(value==0){
    return 1;
  }
  if(i>=n1){
    return 0;
  }
  res=solve(i+1,value) || solve(i+1,value-ary[i]);
  return res;
}

int main(){
  int n2,V,i;
  scanf("%d",&n1);
  for(i=0;i<n1;i++){
    scanf("%d",&ary[i]);
  }
  scanf("%d",&n2);
  for(i=0;i<n2;i++){
    scanf("%d",&V);
    if(solve(0,V))printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

