#include<stdio.h>
#define True 1
#define False -1
int search (int a,int b,int c);
int num[50];
int main(){
  int n,u,m,i;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&num[i]);
  }
  scanf("%d",&u);
  for(i=0;i<u;i++){
    scanf("%d",&m);
    if(search(0,m,n)==True)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

int search(int a,int b,int c){

  if(b==0)return True;
  if(a>=c)return False;
  if(search(a+1,b,c)==True||search(a+1,b-num[a],c)==True)return True;
  if(search(a+1,b,c)==True||search(a+1,b-num[a],c)==False)return False;
  if(search(a+1,b,c)==False||search(a+1,b-num[a],c)==True)return False;
  if(search(a+1,b,c)==False||search(a+1,b-num[a],c)==False)return False;
}