#include<stdio.h>
#define N 2000
#define TRUE 1
#define FALSE 0

int n1,a[N];

int search(int cnt,int s){
  int ans;
  
  if(s==0) return TRUE;
  if(cnt>=n1) return FALSE;

  return ans=search(cnt+1,s)+search(cnt+1,s-a[cnt]);
  
  }

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

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

  scanf("%d",&n2);
  for(i=0;i<n2;i++){
    scanf("%d",&s);
    if(search(0,s)>=1) printf("yes\n");
    else printf("no\n");
  }
}

