#include <stdio.h>
#define M 2000
int solve(int,int);
int n,a[MAX];

int main(){
int b[MAX],i,m;

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,M[i]))printf("yes\n");
else printf("no\n");
}

return 0;
}
int solve(int x,int y){
if(a[x]==y)return 1;
if(x>=n)return 0;
if(solve(x+1,y-a[x])||solve(x+1,y))return 1;
return 0;
}