#include <stdio.h>
#include <string.h>
#define N 2000

int n, q, in;
char dp[2][40001];

void swap(int* a, int* b){
  int tmp = *a;
  *a = *b;
  *b = tmp;
}

main(){
  while(scanf("%d", &n) != EOF){
    int i, j, next = 1, cur = 0;
    for(i=0;i<2;i++) for(j=0;j<=40000;j++) dp[i][j] = 0;
    dp[0][0] = 1;
    for(i=0;i<n;i++){
      scanf("%d", &in);
      for(j=0;j<=40000;j++){
        if(dp[cur][j]){
          dp[next][j+in] = 1;
          dp[next][j] = 1;
        }
      }
      swap(&next, &cur);
    }
    scanf("%d", &q);
    for(i=0;i<q;i++){
      scanf("%d", &in);
      printf("%s\n", (dp[cur][in] ? "yes" : "no"));
    }
  }
}