#include <stdio.h>
#define AMAX 20
#define MIMAX 2000
int main(){
  int i, j;
  int n, q, num;
  int one[MIMAX+1] = {0};
  scanf("%d", &n);
  for (i = 0; i < n; i++){
    scanf("%d", &num);
    for(j = MIMAX-num; 0 < j; j--){
      if(one[j]){
        one[j+num] = 1;
} }
    one[num] = 1;
  }
  scanf("%d", &q);
  for(i = 0; i < q; i++){
    scanf("%d", &num);
    if(one[num]){
      printf("yes\n");
    }
    else printf("no\n");
  }
return 0; }
