#include<stdio.h>

int a[30];
int n;

int solve(int p, int b)
{
    if (p == n)
        if (b == 0) return 1;
        else return 0;
    if (solve(p+1, b-a[p]) || solve(p+1, b)) return 1;
    else return 0;
}

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

