#include<stdio.h>
#include<stdbool.h>
#define N 3000
bool solve(int,int);
int A[N],a;
int main(){
  int b,z,i;
  scanf("%d",&a);
  for(i=0;i<a;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&b);
  for(i=0;i<b;i++){
    scanf("%d",&z);
    if(solve(0,z))
      printf("yes\n");
    else
      printf("no\n");
  }
    return 0;
}
bool solve(int x,int y){
  if(y==0)
    return true;
  if(x>=a)
    return false;
  int res=solve(x+1,y)||solve(x+1,y-A[x]);
  return res;
}

