#include <stdio.h>
#include <stdlib.h>

int solve(int *a,int size1,int n,int b);
int main(int argc, char** argv) {
    int size1, size2;
    scanf("%d",&size1);
    int array1[size1];
    for(int i=0;i<size1;i++)
    {
        scanf("%d",&array1[i]);
    }
    scanf("%d",&size2);
    int array2[size2];
    for(int i=0;i<size2;i++)
    {
        scanf("%d",&array2[i]);
    }
    for(int i=0;i<size2;i++)
    {
        if(solve(array1,size1,0,array2[i]))
            printf("yes\n");
        else
            printf("no\n");
    }

    
    return (EXIT_SUCCESS);
}

int solve(int *a,int size1,int n,int b)
{
    int diff = b-a[n];
    
    if(n<size1-1)
    {
        if(diff > 0 && solve(a,size1,n+1,diff))
            return 1;
        else if(diff==0||solve(a,size1,n+1,b))
            return 1;
        else 
            return 0;
    }
    else if(b>0 && diff == 0)
        return 1;
    return 0;
}
