#include <stdio.h>
#include <stdlib.h>
int n,A[21];

int search(int i, int m)
{
    if(m==0) return 1;
    if(i>=n) return 0;

    int research=search(i+1,m)||search(i+1,m-A[i]);
    return research;
}
int main()
{
    int i,q,M;
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%d",&A[i]);
    scanf("%d",&q);
    for(i=0;i<q;i++) {
        scanf("%d",&M);
        if(search(0,M)) printf("yes\n");
        else printf("no\n");
    }
    return 0;
}

