#include <stdio.h>

int main()
{
	int n, q, A[100], M[100], i, j, k, c[100];
	
	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[i]);
    
    for (i = 0; i < q; i++) {
    	for (j = 0; j < n; j++) {
    		for (k = j + 1; k < n; k++) {
    			if (M[i] == A[j] + A[k] || M[i] == A[j] || M[i] == A[k]) {
    				c[i] = 1;
    				printf("yes\n");
    				break;
    			} else {
    				c[i] = 0;
    			}
    		}
    		if (c[i] == 1)
    			break;
    	}
    	if (c[i] == 0)
    		printf("no\n");
    }
    
    return 0;
}