#include<stdio.h>

int N,s[100000];

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-s[i]);
  return res;
}

int main(){

  int i,j,N2,flag=0,m;

  scanf("%d",&N);

  for(i=0;i<N;i++){
    scanf("%d",&s[i]);
  }

  scanf("%d",&N2);

  for(j=0;j<N2;j++){
    scanf("%d",&m);
    flag=solve(0,m);
    if(flag==1)printf("yes\n");
    else printf("no\n");
  }

  return 0;
}
