#include<stdio.h>

#define YOUSO 2000

int main(){
  int i,j,n,q,x,m;
  int a[YOUSO+1] ={0};

  scanf("%d",&n);
  
  for(i=0;i<n; i++){
    scanf("%d",&x);
    
    for(j = YOUSO-x ;0<j ;j--){if(a[j]){
	a[j+x] = 1;
      }
    }
    a[x] = 1;
  }
  
  scanf("%d",&q);
  
  for(i= 0;i<q;i++){ scanf("%d",&x);
    
    if(a[x]){
      printf("yes\n");
    }
    
    else {printf("no\n");
    }
  }
  
  return 0;
}

