#include<stdio.h>
int solve(int,int);

int n,A[1000];
int main(){
  int i,s,m;
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&A[i]);
  //intput
  scanf("%d",&s);
  for(i=0;i<s;i++){
    scanf("%d",&m);
    if(solve(0,m)==0)printf("no\n");
    else printf("yes\n");
  }
  
  return 0;
}
int solve(int i,int m){
  int res;
  if(m==0)return 1;
  if(i>=n)return 0;
  res=(solve(i+1,m)||solve(i+1,m-A[i]))?1:0;
  return res;
}

