#include<stdio.h>
int main(void){
????int n, q, temp, i, j;
????int a[2001] = {1};
????scanf("%d", &n);
????for(i = 0; i < n; i++){
????????scanf("%d", &temp);
????????for(j=2000-temp;j>=0;j--){
????????????if(a[j]) a[j + temp] = 1;
????????}
????}
????
????scanf("%d", &q);
????for(i=0; i<q; i++){
????????scanf("%d", &temp);
????????if(a[temp]) printf("yes\n");
????????else printf("no\n");
????}
????return 0;
}
????????????????