#include <stdio.h>
#define U 2000
int main(){
    int dp[U] = {0}, n, q, A, M, i, j;
    
    scanf("%d", &n);
    for (i = 0;i < n;i++) {
        scanf("%d", &A);
        dp[A] = 1;
        for (i = 0;i < U;i++) if (dp[i]) dp[i + A] = 1;
    }
    scanf("%d", &q);
    for (i = 0;i < q;i++) {
        scanf("%d", &M);
        printf("%s\n", (dp[M] ? "yes":"no"));
    }
    return 0;
}