#include<stdio.h>
#define N 20

int solve(int,int);

int A[N];
int n;

int main(){
  int i,j,q,c;

  scanf("%d",&n);

  for(i = 0;i < n;i++){
    scanf("%d",&A[i]);
  }

  scanf("%d",&q);

  for(j = 0;j < q;j++){
    scanf("%d",&c);
    if(solve(0,c)) printf("yes\n");
    else printf("no\n");
  }

  return 0;
}

int solve(int m,int key){
  int res = 0;
  if(key == 0) return 1;
  if(m >= n)return 0;
  if(solve(m + 1,key) == 1|| solve(m + 1,key - A[m]) == 1)
    res = 1;
  
  return res;
}

