#include <stdio.h>
int solve(int ,int);
int a[2014],n,m,f;


int main(){
int b[2014],i;

scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&a[i]);
scanf("%d",&m);
for(i=0;i<m;i++)scanf("%d",&b[i]);
for(i=0;i<m;i++){
if(solve(0,b[i]))printf("yes\n");
else printf("no\n");
}
return 0;
}

int solve(int x,int  y){
if(y==0){
return 1;
}
if(x+1>=n){
return 0;
}


if(solve(x+1,y-a[x])||solve(x+1,y)){
return 1;
}
else return 0;
}